Added support for passwords in userinfo of urls.

This commit is contained in:
Diogo Sousa 2013-06-16 20:00:35 +01:00
parent 2870586cf9
commit 32dee82c58
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ re_host (void)
"(" NOPARENS ")" \ "(" NOPARENS ")" \
")*" /* Zero or more occurrences of either of these */ \ ")*" /* Zero or more occurrences of either of these */ \
"(?<![.,?!\\]])" /* Not allowed to end with these */ "(?<![.,?!\\]])" /* Not allowed to end with these */
#define USERINFO "([-a-z0-9._~%]+@)" #define USERINFO "([-a-z0-9._~%]+(:[-a-z0-9._~%]*)?@)"
/* Flags used to describe URIs (RFC 3986) /* Flags used to describe URIs (RFC 3986)
* *