Whenever a message is posted in HTML mode, all single-quotes ( ' ) get repeated, i.e. '' . Each time you preview the message, it doubles the number of single-quotes. So, if I preview a message three times, I end up with ''''''''
Is anyone else having this problem?
I am running PHP4.0.0pl2. Is this one of the known problems with running Nuke under PHP4 instead of PHP3?
Thanks for any suggestions.
Derrick
Libertyboard.org
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Whenever a message is posted in HTML mode, all single-quotes ( ' ) get repeated, i.e. '' . Each time you preview the message, it doubles the number of single-quotes. So, if I preview a message three times, I end up with ''''''''
Is anyone else having this problem?
I am running PHP4.0.0pl2. Is this one of the known problems with running Nuke under PHP4 instead of PHP3?
Thanks for any suggestions.
Derrick
Libertyboard.org
I am also experiencing this problem. Has anyone found a fix to it?
Finally dove into the source and fixed it. I believe my comments.php3 file is from v2.5, but 3.0 should be the same.
Anyway, near the beginning of the replyPreview function, at line 416...
change this:
$subject = stripslashes(FixQuotes($subject));
$comment = stripslashes(FixQuotes($comment));
to this:
$subject = stripslashes($subject);
$comment = stripslashes($comment);
That seemed to do the trick for me. YMMV.