From 0d2db9ba308924b783b3c2e0e1c9fd6c98b30ccf Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Thu, 19 Dec 2019 03:45:12 +0300 Subject: [PATCH] Non-case sensitive link checking in the hyperlink dialog Change-Id: I1f31946e68d22c89acffdba5a5b55203892712c1 Reviewed-on: https://gerrit.libreoffice.org/85460 Tested-by: Jenkins CollaboraOffice Reviewed-by: Michael Meeks --- loleaflet/src/control/Toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loleaflet/src/control/Toolbar.js b/loleaflet/src/control/Toolbar.js index 52735d7da..07d802835 100644 --- a/loleaflet/src/control/Toolbar.js +++ b/loleaflet/src/control/Toolbar.js @@ -436,7 +436,7 @@ L.Map.include({ }, makeURLFromStr: function(str) { - if (!(str.startsWith('http://') || str.startsWith('https://'))) { + if (!(str.toLowerCase().startsWith('http://') || str.toLowerCase().startsWith('https://'))) { str = 'http://' + str; } return str;