summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-06-16 20:00:35 +0100
committerDiogo Sousa <diogogsousa@gmail.com>2013-06-16 20:00:35 +0100
commit32dee82c584776e4a5a1cbefb195ae6d0a8fe752 (patch)
tree52cd86598ad7e2a739f2ee37c4ddb328b11a1d77 /src/common
parent2870586cf9c241877dc49890f26a8496d13d25e4 (diff)
Added support for passwords in userinfo of urls.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/url.c b/src/common/url.c
index ef6e3fdb..b57f9fc3 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -396,7 +396,7 @@ re_host (void)
 	   "(" NOPARENS ")"						\
 	")*"	/* Zero or more occurrences of either of 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)
  *