simple
simple

Reputation: 1091

Problem with img path in Linux

I am facing an issue while uploading a formatted text/html to the db, things work fine under the WAMP but when doing in LAMP I an having the backslash added to the quotes

string(114) "<p>
    <img alt=\"\" src=\"/ckfinder/userfiles/images/aboutkg.jpg\" style=\"width: 607px; height: 221px;\" /></p>
"

I am using a Zend_Form and ckeditor. And I am pretty sure I am missing something simple m what is it?

Upvotes: 1

Views: 212

Answers (1)

che
che

Reputation: 12263

You might be missing PHP's magic_quotes_gpc option or its friend magic_quotes_runtime . When those are enabled, PHP automatically escapes all quotes that arrive via HTTP request or are retrieved from database and so on. It's a deprecated feature intended to prevent SQL injection. See Magic Quotes chapter in PHP manual.

Upvotes: 2

Related Questions