Menu

Quotes problems in HTML messages?

Help
2000-08-24
2000-09-20
  • Derrick Miller

    Derrick Miller - 2000-08-24

    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

     
    • Tony Webster

      Tony Webster - 2000-08-29

      I am also experiencing this problem.  Has anyone found a fix to it? 

       
      • Derrick Miller

        Derrick Miller - 2000-09-20

        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.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.