diff --git a/www/admin/inner.js b/www/admin/inner.js index f8bcad681..30d0ec1a6 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -1596,7 +1596,7 @@ define([ var getData = function () { var url = $input.val(); if (!Util.isValidURL(url)) { - console.error('Invalid URL'); + console.error('Invalid URL', url); return false; } return url; diff --git a/www/common/common-util.js b/www/common/common-util.js index 9101749f8..51540a660 100644 --- a/www/common/common-util.js +++ b/www/common/common-util.js @@ -559,8 +559,8 @@ '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|'+ // domain name '((\\d{1,3}\\.){3}\\d{1,3}))'+ // OR ip (v4) address '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ // port and path - '(\\?[;&a-z\\d%_.~+=-]*)?'+ // query string - '(\\#[-a-z\\d_]*)?$','i'); // fragment locator + '(\\?[;&a-z\\d%_.~+=-]*)?'); // query string + //'(\\#[-a-z\\d_]*)?$','i'); // fragment locator return !!pattern.test(str); };