summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2024-07-10 17:32:20 +0100
committerPranam Lashkari <plashkari628@gmail.com>2024-07-29 20:02:30 +0200
commit5705a03c603845d88e6e1552df04ea9e1a35d98c (patch)
tree9620b383b39028411e289a5e3a5594a4e192025c
parentupdated sanitize-url to match latest standers (diff)
downloadonline-5705a03c603845d88e6e1552df04ea9e1a35d98c.tar.gz
online-5705a03c603845d88e6e1552df04ea9e1a35d98c.zip
broswer: sanitize productFAQ url distro/collabora/co-22-05
Signed-off-by: Pranam Lashkari <lpranam@collabora.com> Change-Id: I51ce1fba1aa238b913d1fd44bdf54b7355edfdc5
-rw-r--r--browser/src/control/Control.Infobar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/browser/src/control/Control.Infobar.js b/browser/src/control/Control.Infobar.js
index 6aa8a5e8bc..8a82bf0e6e 100644
--- a/browser/src/control/Control.Infobar.js
+++ b/browser/src/control/Control.Infobar.js
@@ -3,7 +3,7 @@
* L.Control.Infobar used for displaying non-annoying info messages
*/
-/* global vex $ */
+/* global vex $ sanitizeUrl */
L.Control.Infobar = L.Control.extend({
onAdd: function (map) {
map.on('infobar', this._onInfobar, this);
@@ -23,7 +23,7 @@ L.Control.Infobar = L.Control.extend({
return;
if (e.action.startsWith('http')) { // We have a link
- var win = window.open(e.action, '_blank');
+ var win = window.open(sanitizeUrl.sanitizeUrl(e.action), '_blank');
win.focus();
}
};