Browse Source

url_regex: Don't allow : or / in passwords

master
Jørn Lode 5 years ago
committed by Jelle van der Waa
parent
commit
7adefddb66
  1. 2
      url_regex.hh

2
url_regex.hh

@ -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…
Cancel
Save