svn: /web/doc-editor/trunk/js/ui/task/ GetGGTranslation.js

From: Date: Tue, 21 Jun 2011 18:19:35 +0000
Subject: svn: /web/doc-editor/trunk/js/ui/task/ GetGGTranslation.js
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-2041@lists.php.net to get a copy of this message
nbpoole Tue, 21 Jun 2011 18:19:35 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=312359 Log: Properly encode output from Google Translate. Changed paths: U web/doc-editor/trunk/js/ui/task/GetGGTranslation.js Modified: web/doc-editor/trunk/js/ui/task/GetGGTranslation.js =================================================================== --- web/doc-editor/trunk/js/ui/task/GetGGTranslation.js 2011-06-21 18:08:02 UTC (rev 312358) +++ web/doc-editor/trunk/js/ui/task/GetGGTranslation.js 2011-06-21 18:19:35 UTC (rev 312359) @@ -23,9 +23,9 @@ { var o = Ext.util.JSON.decode(response.responseText); - Ext.get('GGTranslate-result').dom.innerHTML = o.translation; + Ext.get('GGTranslate-result').dom.innerHTML = Ext.util.Format.htmlEncode(o.translation); Ext.getCmp('GGTranslate-btn').setText(_('Translate !')); Ext.getCmp('GGTranslate-btn').enable(); } }); -}; \ No newline at end of file +};

« previous php.doc.web (#2041) next »