From f91b2bc17e4bd3e897102a75f9b2346ae21c0d6d Mon Sep 17 00:00:00 2001 From: Unrud Date: Fri, 4 Aug 2017 14:58:59 +0200 Subject: [PATCH] Webinterface: Escape . correctly in RegExp --- radicale/web/fn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/web/fn.js b/radicale/web/fn.js index 0333494..501352a 100644 --- a/radicale/web/fn.js +++ b/radicale/web/fn.js @@ -29,7 +29,7 @@ var SERVER = (location.protocol + '//' + location.hostname + * @const * @type {string} */ -var ROOT_PATH = location.pathname.replace(new RegExp("/+[^/]+/*(/index\.html?)?$"), "") + '/'; +var ROOT_PATH = location.pathname.replace(new RegExp("/+[^/]+/*(/index\\.html?)?$"), "") + '/'; /** * time between updates of collections (milliseconds)