Skip to content

Commit

Permalink
Added escaping html code when building link to documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Pulzer committed Jul 5, 2016
1 parent 52336b2 commit cf7afab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/updatenotification/js/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 href="'+docLink+'" target="_blank">'+text+'</a>');
element = $('<a href="'+escapeHTML(docLink)+'" target="_blank">'+escapeHTML(text)+'</a>');

OC.Notification.showTemporary(
element,
Expand Down

0 comments on commit cf7afab

Please sign in to comment.