summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-banip/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2023-07-17 16:09:45 +0200
committerDirk Brenken <dev@brenken.org>2023-07-17 16:09:45 +0200
commitceb490df59d23664e409af991e578122e259a65d (patch)
treedca9a636a48643c3b503a3882e9c4d0313a9bebc /applications/luci-app-banip/htdocs/luci-static/resources
parent7597e9eab2be23ffff712e2d789e5a03e669b112 (diff)
luci-app-banip: fix URL regex in custom feed editor
- accept special chars for BASIC AUTH in URL Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-banip/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js
index 267ca410f7..0e4e682986 100644
--- a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js
+++ b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js
@@ -205,7 +205,7 @@ return view.extend({
if (!value) {
return true;
}
- if (!value.match(/^(http:\/\/|https:\/\/)[A-Za-z0-9\/\.\-_\?\&\+=~#]+$/)) {
+ if (!value.match(/^(http:\/\/|https:\/\/)[A-Za-z0-9\/\.\-\?\&\+_@%=:~#]+$/)) {
return _('Protocol/URL format not supported');
}
return true;
@@ -218,7 +218,7 @@ return view.extend({
if (!value) {
return true;
}
- if (!value.match(/^(http:\/\/|https:\/\/)[A-Za-z0-9\/\.\-_\?\&\+=:~#]+$/)) {
+ if (!value.match(/^(http:\/\/|https:\/\/)[A-Za-z0-9\/\.\-\?\&\+_@%=:~#]+$/)) {
return _('Protocol/URL format not supported');
}
return true;