Skip to content

Commit

Permalink
Merge pull request #24 from WyriHaximusNet/Increase-URL-parser-schema…
Browse files Browse the repository at this point in the history
…-size-to-access-rediss

Increase URL parser schema size to access rediss://
  • Loading branch information
WyriHaximus authored Oct 9, 2022
2 parents 0be08bd + 84fff39 commit 91e596a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/add.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function uri_parser() {
uri="${uri//\"/%22}"

# top level parsing
pattern='^(([a-z]{3,5})://)?((([^:\/]+)(:([^@\/]*))?@)?([^:\/?]+)(:([0-9]+))?)(\/[^?]*)?(\?[^#]*)?(#.*)?$'
pattern='^(([a-z]{3,6})://)?((([^:\/]+)(:([^@\/]*))?@)?([^:\/?]+)(:([0-9]+))?)(\/[^?]*)?(\?[^#]*)?(#.*)?$'
[[ "$uri" =~ $pattern ]] || return 1;

# component extraction
Expand Down

0 comments on commit 91e596a

Please sign in to comment.