url_regex: Don't allow : or / in passwords
This commit is contained in:
parent
4f558cd62d
commit
7adefddb66
|
@ -3,7 +3,7 @@
|
|||
|
||||
#define USERCHARS "-[:alnum:]"
|
||||
#define USERCHARS_CLASS "[" USERCHARS "]"
|
||||
#define PASSCHARS_CLASS "[-[:alnum:]\\Q,?;.:/!%$^*&~\"#'\\E]"
|
||||
#define PASSCHARS_CLASS "[-[:alnum:]\\Q,?;.!%$^*&~\"#'\\E]"
|
||||
#define HOSTCHARS_CLASS "[-[:alnum:]]"
|
||||
#define HOST "(?:" HOSTCHARS_CLASS "+(\\." HOSTCHARS_CLASS "+)*)?"
|
||||
#define PORT "(?:\\:[[:digit:]]{1,5})?"
|
||||
|
|
Loading…
Reference in New Issue