开发者

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 s开发者_Go百科imple m what is it?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜