Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthormike
    • CommentTimeNov 26th 2005
     
    The apostrophe is an escape character, needed to insert data with quotes into the MySQL database that contains MySQL control characters, such as the apostrophe.

    I'm finding there are quite a few places in the Plogger code which do not strip out this extraneous slash, but you can fix it yourself pretty easily.

    If you are comfortable editing PHP code, then you simply need to apply the stripslashes() function to any part of the display output that you want to remove the slash from.

    If you aren't comfortable, then let us know where you want to have the slash removed from and we can give you the lines of code to change.
    •  
      CommentAuthorctlsmite
    • CommentTimeDec 16th 2005
     
    Where do you put the stripslashes(); function for photo comments?
    •  
      CommentAuthormike
    • CommentTimeDec 16th 2005
     
    If you'd like to fix it within your copy, simply do this:
    gallery.php, line 909 in display_comments()

    $output .= "<p>".htmlspecialchars($row["comment"])."</p>";

    Change it to
    $output .= "<p>".htmlspecialchars(SmartStripSlashes($row["comment"]))."</p>";
    •  
      CommentAuthorctlsmite
    • CommentTimeDec 19th 2005
     
    Perfect. Thank you!
    • CommentAuthordjoole
    • CommentTimeAug 9th 2006
     
    Hi,
    Where do you put stripslashes() function for collection and album titles?
    Thx
    • CommentAuthordjoole
    • CommentTimeAug 9th 2006 edited
     
    Found it thanks (sorry for 2 useless posts..)