summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-08 17:29:05 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-08 17:29:05 +0100
commit9ad03b61a357fa1edb322ffd1aab4d62daa856e5 (patch)
tree39f2de0e25301086f553e0df19325533c1212b9f /core
parent6e5e8c6b46f24027ee86284844f43e744a3f5f4c (diff)
downloadnextcloud-server-9ad03b61a357fa1edb322ffd1aab4d62daa856e5.tar.gz
nextcloud-server-9ad03b61a357fa1edb322ffd1aab4d62daa856e5.zip
Update share.js
Added HTML escaping
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 0b6afda59c4..8e767663f12 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -84,10 +84,10 @@ OC.Share={
var img = action.find('img').attr('src', image);
if (shares) {
action.addClass('permanent');
- action.html(' '+t('core', 'Shared')).prepend(img);
+ action.html(' '+ escapeHTML(t('core', 'Shared'))).prepend(img);
} else {
action.removeClass('permanent');
- action.html(' '+t('core', 'Share')).prepend(img);
+ action.html(' '+ escapeHTML(t('core', 'Share'))).prepend(img);
}
}
}