[Phpfreechat-svn] SF.net SVN: phpfreechat:[1255] trunk/src/phpfreechat.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2008-11-25 19:06:55
|
Revision: 1255 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1255&view=rev Author: kerphi Date: 2008-11-25 19:06:50 +0000 (Tue, 25 Nov 2008) Log Message: ----------- Fixes problems with quotes and double quotes which can be wrongly converted to smiles (thanks to handyone - sourceforge bug #2343444) Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2008-11-25 17:54:09 UTC (rev 1254) +++ trunk/src/phpfreechat.class.php 2008-11-25 19:06:50 UTC (rev 1255) @@ -130,10 +130,7 @@ */ function FilterSpecialChar($str) { - //$str = stripslashes($str); - // $str = addslashes($str); - $str = htmlspecialchars($str); - return $str; + return htmlspecialchars($str, ENT_NOQUOTES); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |