summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2016-07-05 10:27:48 +0200
committerGitHub <noreply@github.com>2016-07-05 10:27:48 +0200
commit3ffe424985e345d1979c5c8ccbe1b11dc212c67d (patch)
tree2ff6e0474206193ef575d97d564258fa7377a7f9 /apps
parent0481a3eadf92b30339d443e94f570eebfcf4cce6 (diff)
parentcf7afabf62d1e3f4c5856d7636e21496d7992257 (diff)
downloadnextcloud-server-3ffe424985e345d1979c5c8ccbe1b11dc212c67d.tar.gz
nextcloud-server-3ffe424985e345d1979c5c8ccbe1b11dc212c67d.zip
Merge pull request #309 from Faldon/master
Changed the creation of the update notification link
Diffstat (limited to 'apps')
-rw-r--r--apps/updatenotification/js/notification.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/updatenotification/js/notification.js b/apps/updatenotification/js/notification.js
index 810b9c168af..913a59e042c 100644
--- a/apps/updatenotification/js/notification.js
+++ b/apps/updatenotification/js/notification.js
@@ -18,7 +18,7 @@ $(document).ready(function(){
version = oc_updateState.updateVersion,
docLink = oc_updateState.updateLink,
text = t('core', '{version} is available. Get more information on how to update.', {version: version}),
- element = $('<a>').attr('href', docLink).attr('target','_blank').text(text);
+ element = $('<a href="'+escapeHTML(docLink)+'" target="_blank">'+escapeHTML(text)+'</a>');
OC.Notification.showTemporary(
element,