summary refs log tree commit diff stats
path: root/src/common/url.c
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2013-01-15 13:26:11 -0800
committerRichardHitt <rbh00@netcom.com>2013-01-15 13:26:11 -0800
commit7bc0e017f6de8a8f05e9d6202fe8737e2eb75c60 (patch)
tree04238bd9a82aa2fffff596e0602987c3d19118eb /src/common/url.c
parentbb617ccacd7fc46382d14034fdf0a8ccc34f8be3 (diff)
Oops. didn't get the DOMAIN slight change last time. Here it is now.
Diffstat (limited to 'src/common/url.c')
-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 1f3277cd..89047511 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -333,7 +333,7 @@ do_an_re(const char *word,int *start, int *end, int *type)
 }
 
 /*	Miscellaneous description --- */
-#define DOMAIN "[-a-z0-9]+(\\.[-a-z0-9]+)*\\."
+#define DOMAIN "[a-z0-9][-a-z0-9]*(\\.[-a-z0-9]+)*\\."
 #define TLD "[a-z][-a-z0-9]*[a-z]"
 #define IPADDR "[0-9]+(\\.[0-9]+){3}"
 #define HOST "(" DOMAIN TLD "|" IPADDR ")"