Browse code

check if real URL is really an URL. (in response to FP report 983532)

git-svn: trunk@3007

Török Edvin authored on 2007/04/06 04:13:47
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Apr  5 21:15:30 EET 2007 (edwin)
2
+----------------------------------
3
+  * libclamav/phishcheck.c : check if real URL is really an URL.
4
+
1 5
 Mon Apr  2 18:47:30 CEST 2007 (tk)
2 6
 ----------------------------------
3 7
   * libclamav: revert patch from bb#245
... ...
@@ -1204,7 +1204,7 @@ static enum phish_status phishingCheck(const struct cl_engine* engine,struct url
1204 1204
 		return CL_PHISH_HOST_WHITELISTED;
1205 1205
 	}
1206 1206
 
1207
-	if(!isURL(pchk, urls->displayLink.data) &&
1207
+	if((!isURL(pchk, urls->displayLink.data) || !isURL(pchk, urls->realLink.data) )&&
1208 1208
 			( (phishy&PHISHY_NUMERIC_IP && !isNumericURL(pchk, urls->displayLink.data)) ||
1209 1209
 			  !(phishy&PHISHY_NUMERIC_IP))) {
1210 1210
 		free_if_needed(&host_url);