Slashes are not stripped from password comments

Report bugs and errors in this forum.

Slashes are not stripped from password comments

Postby Thrik » Wed Jan 18, 2006 7:29 pm

It seems that when the user types in the password to prove that they are the owner of a protected nick, slashes appear in the comment before apostrophes. If the user is never asked for a password, no slashes appear.



Any chance of a quick-fix before it is properly patched? :) <3
Thrik
 
Posts: 50
Joined: Wed Oct 26, 2005 3:19 am

Postby FI-DD » Wed Jan 18, 2006 8:45 pm

Open inc/show.addcomment.php and change this:

Code: Select all
         $comments = str_replace(array('"', '\''), array('&quot;', '''), $comments);




to this:

Code: Select all
         $comments = str_replace(array('"', '\\\''), array('&quot;', '''), $comments);
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Thrik » Wed Jan 18, 2006 9:08 pm

Wonderful! Thankyou very much. Image
Thrik
 
Posts: 50
Joined: Wed Oct 26, 2005 3:19 am


Return to Bugs and errors



Who is online

Users browsing this forum: No registered users and 0 guests