diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-05-21 20:44:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 20:44:15 +0200 |
commit | 82d12db7ecdecda9953fb8c1ff553818f94bac03 (patch) | |
tree | 0b1a3a1fcacf6eb7b11a874faebcc6584bd2ed5d /src | |
parent | ee09423fe66af387317122d0b60368025b5f881f (diff) | |
parent | 3d22aa091bb962c68810f10a6027ef452da84a90 (diff) | |
download | vyos-utils-82d12db7ecdecda9953fb8c1ff553818f94bac03.tar.gz vyos-utils-82d12db7ecdecda9953fb8c1ff553818f94bac03.zip |
Merge pull request #20 from jestabro/regex-user-info
T5940: relax regex of uri user information for 1.3.x compatibility
Diffstat (limited to 'src')
-rw-r--r-- | src/url.ml | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ let regex_matches regex s = let host_path_format = Pcre.regexp - {|^//(?:[a-zA-Z0-9\-\._~]+(?::[a-zA-Z0-9\-\._~]*)?@)?([a-zA-Z0-9\-\._~]+|\[[a-zA-Z0-9:\.]+\])(?::([0-9]+))?(/.*)?$|} + {|^//(?:[^/?#]+(?::[^/?#]*)?@)?([a-zA-Z0-9\-\._~]+|\[[a-zA-Z0-9:\.]+\])(?::([0-9]+))?(/.*)?$|} let host_name_format = Pcre.regexp {|^[a-zA-Z0-9]+([\-\._~]{1}[a-zA-Z0-9]+)*$|} let ipv4_addr_format = Pcre.regexp {|^(([1-9]\d{0,2}|0)\.){3}([1-9]\d{0,2}|0)$|} |