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

[email protected] (Neal Poole)
Newsgroups php.doc.web
Message-ID <[email protected]>
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
+};
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.