Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
url_regex: Don't allow : or / in passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
boblehest authored and jelly committed Oct 14, 2017
1 parent 4f558cd commit 7adefdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion url_regex.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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})?"
Expand Down

0 comments on commit 7adefdd

Please sign in to comment.