Browse Source

url_regex: Don't allow : or / in passwords

master
Jørn Lode 3 years ago
committed by Jelle van der Waa
parent
commit
7adefddb66
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      url_regex.hh

+ 1
- 1
url_regex.hh View File

@ -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