url_regex: Don't allow : or / in passwords

This commit is contained in:
Jørn Lode 2017-04-30 23:53:56 +02:00 committed by Jelle van der Waa
parent 4f558cd62d
commit 7adefddb66
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
#define USERCHARS "-[:alnum:]" #define USERCHARS "-[:alnum:]"
#define USERCHARS_CLASS "[" USERCHARS "]" #define USERCHARS_CLASS "[" USERCHARS "]"
#define PASSCHARS_CLASS "[-[:alnum:]\\Q,?;.:/!%$^*&~\"#'\\E]" #define PASSCHARS_CLASS "[-[:alnum:]\\Q,?;.!%$^*&~\"#'\\E]"
#define HOSTCHARS_CLASS "[-[:alnum:]]" #define HOSTCHARS_CLASS "[-[:alnum:]]"
#define HOST "(?:" HOSTCHARS_CLASS "+(\\." HOSTCHARS_CLASS "+)*)?" #define HOST "(?:" HOSTCHARS_CLASS "+(\\." HOSTCHARS_CLASS "+)*)?"
#define PORT "(?:\\:[[:digit:]]{1,5})?" #define PORT "(?:\\:[[:digit:]]{1,5})?"