From 91e5c03e52ae720eee02155758d0b3f5cc860ee5 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Fri, 7 Mar 2014 09:56:54 +0100 Subject: [PATCH] Potential bugfix --- Duplicati/Server/webroot/scripts/edituri.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Server/webroot/scripts/edituri.js b/Duplicati/Server/webroot/scripts/edituri.js index ace37715f..77a27c7cf 100644 --- a/Duplicati/Server/webroot/scripts/edituri.js +++ b/Duplicati/Server/webroot/scripts/edituri.js @@ -97,7 +97,7 @@ $(document).ready(function() { } for(var k in values) { - if (k.substr(0, 2) == '--') { + if (k.length > 2 && k.substr(0, 2) == '--') { var opt = validOptionsDict[k.substr(2)]; if (!opt) {