开发者

FCKeditor extra unwanted slashes coming

开发者 https://www.devze.com 2022-12-30 14:57 出处:网络
When I try to save text using FCKeditor, too many extra unwanted slashes gets added to the text saved in database.

When I try to save text using FCKeditor, too many extra unwanted slashes gets added to the text saved in database. thanks in adveance for 开发者_开发知识库any solution,suggestion


do a phpinfo() and see if magic quotes are enabled - thats what it sounds like. If they are enabled (shame on your host) then you can make a php.ini file in the directory and put in the lines:

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

and that should fix you right up. You may need to use a .htaccess file depending on your webhost setup, in which case you'd use the line:

php_flag magic_quotes_gpc Off


Please use PHP's stripslashes function

stripslashes($content);
0

精彩评论

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