[Phpfreechat-svn] SF.net SVN: phpfreechat: [1072] trunk/data/public/js/pfcgui.js
Status: Beta
Brought to you by:
kerphi
From: <gpi...@us...> - 2007-08-01 19:16:59
|
Revision: 1072 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1072&view=rev Author: gpinzone Date: 2007-08-01 12:17:00 -0700 (Wed, 01 Aug 2007) Log Message: ----------- Fixes bug 1762865. Smileys with double quote characters would still be escaped on IE browsers. The problem is with the unescapeHTML function in prototype.js. However, it's patched here as per kerphi. Modified Paths: -------------- trunk/data/public/js/pfcgui.js Modified: trunk/data/public/js/pfcgui.js =================================================================== --- trunk/data/public/js/pfcgui.js 2007-08-01 16:28:27 UTC (rev 1071) +++ trunk/data/public/js/pfcgui.js 2007-08-01 19:17:00 UTC (rev 1072) @@ -405,6 +405,10 @@ s_url = sl[i]; s_symbol = smileys[sl[i]]; s_symbol = s_symbol.unescapeHTML(); + // Replace " with " for IE and Webkit browsers. + // The prototype.js version 1.5.1.1 does not do this. + if (window.attachEvent && !window.opera) // IE detection from prototype.js + s_symbol = s_symbol.replace(/"/g,'"'); var img = document.createElement('img'); img.setAttribute('src', s_url); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |