Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-04-13 17:24:35 +0400
committerLukas Reschke <lukas@owncloud.com>2014-08-20 21:20:12 +0400
commitd9ecfa3bd4f2185f03f9f3f50cdd08c8fdae734a (patch)
tree1335c00d2f4d2a7416689ca38459c0e47ea99142
parenta5aa04ce19142029d77b16610d27e46a08d4d17d (diff)
Also encode > and '
-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 80e9ac3f949..eba73bc24ea 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;');
}
/**