fix: url validation, upload rotate.js
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ need_root() {
|
||||
}
|
||||
|
||||
validate_url() {
|
||||
[[ "$1" =~ ^https?://[^/]+:[0-9]+/.+ ]]
|
||||
[[ "$1" =~ ^https?://[^/:]+:[0-9]+(/[^/]+)*$ ]]
|
||||
}
|
||||
|
||||
#################################
|
||||
|
||||
Reference in New Issue
Block a user