Potential bugfix

This commit is contained in:
Kenneth Skovhede
2014-03-07 09:56:54 +01:00
parent ccd44ff42e
commit 91e5c03e52
+1 -1
View File
@@ -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) {