git-svn: trunk@2718
Tomasz Kojm authored on 2007/02/13 05:34:31... | ... |
@@ -19,6 +19,9 @@ |
19 | 19 |
* MA 02110-1301, USA. |
20 | 20 |
* |
21 | 21 |
* $Log: phishcheck.c,v $ |
22 |
+ * Revision 1.22 2007/02/12 20:34:31 tkojm |
|
23 |
+ * fix hexurl regex (bb#288) |
|
24 |
+ * |
|
22 | 25 |
* Revision 1.21 2007/02/11 00:41:13 tkojm |
23 | 26 |
* remove some gcc warnings |
24 | 27 |
* |
... | ... |
@@ -284,7 +287,7 @@ For the Whitelist(.wdb)/Domainlist(.pdb) format see regex_list.c (search for Fla |
284 | 284 |
/* Constant strings and tables */ |
285 | 285 |
static char empty_string[]=""; |
286 | 286 |
|
287 |
-#define ANY_CLOAK "(0[xX])?([a-fA-F0-9]+\\.?)+" |
|
287 |
+#define ANY_CLOAK "(((0[xX])?[a-fA-F0-9])+\\.?)+" |
|
288 | 288 |
#define CLOAK_REGEX_HEXURL "("ANY_CLOAK")?0[xX][a-fA-F0-9]+\\.?"ANY_CLOAK |
289 | 289 |
#define OCTAL_CLOAK "("ANY_CLOAK")?000[0-9]+\\.?"ANY_CLOAK |
290 | 290 |
#define DWORD_CLOAK "[0-9]{8,}" |