Page 1 of 1

Why is my form output adding '/'s!?

Posted: Sun Jul 18, 2010 7:08 pm
by phpnewb78
Hi everyone,

I have downloaded an open source WYSIWYG PHP editor script. It works great except that it adds '/'s before every single " in the html attributes. This means no links or images work correctly and I am guessing some browsers won't even display any of the tags at all.

eg. of output tag.

<IMG height=60 alt=\"openWYSIWYG - Cross-browser WYSIWYG editor\" src=\"http://www.openwebware.com/images/openw ... go9060.gif\" width=90 border=0>

Any ideas of why this is happening?

Re: Why is my form output adding '/'s!?

Posted: Sun Jul 18, 2010 7:13 pm
by AbraCadaver
magic_quotes_gpc is enabled in php.ini. Either disable it or use stripslashes().

Re: Why is my form output adding '/'s!?

Posted: Sun Jul 18, 2010 7:18 pm
by Gargoyle