summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-04-13 15:24:35 +0200
committerLukas Reschke <lukas@statuscode.ch>2014-04-13 15:24:35 +0200
commit6e424eb990e7640f6d8f2cb25fe97024ebd95a05 (patch)
tree424e21668ddfbf6566c388c538622cbde41cd099 /core/js/js.js
parent9de3c1b59d808b9725e728a2956f66b1d02274fe (diff)
downloadnextcloud-server-6e424eb990e7640f6d8f2cb25fe97024ebd95a05.tar.gz
nextcloud-server-6e424eb990e7640f6d8f2cb25fe97024ebd95a05.zip
Also encode > and '
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index f10c7163092..b712da4bd02 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -151,7 +151,7 @@ function n(app, text_singular, text_plural, count, vars) {
* @return Sanitized string
*/
function escapeHTML(s) {
- return s.toString().split('&').join('&amp;').split('<').join('&lt;').split('"').join('&quot;');
+ return s.toString().split('&').join('&amp;').split('<').join('&lt;').split('>').join('&gt;').split('"').join('&quot;').split('\'').join('&#039;');
}
/**