[pLog-svn] r7109 - plog/branches/lifetype-1.2/class/dao

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Thu Jan 13 17:13:51 EST 2011


Author: jondaley
Date: 2011-01-13 17:13:51 -0500 (Thu, 13 Jan 2011)
New Revision: 7109

Modified:
   plog/branches/lifetype-1.2/class/dao/referers.class.php
Log:
add another check for a null referrer, due to the previous line that inserts a colon.  I think my new validation stuff wouldn't allow this to happen any more anyway, but it doesn't hurt much

Modified: plog/branches/lifetype-1.2/class/dao/referers.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/referers.class.php	2011-01-13 22:12:18 UTC (rev 7108)
+++ plog/branches/lifetype-1.2/class/dao/referers.class.php	2011-01-13 22:13:51 UTC (rev 7109)
@@ -47,7 +47,7 @@
             $refererUrlHost = ( $refererUrl->getPort() == 80 ) ? $refererUrl->getHost() : $refererUrl->getHost().':'.$refererUrl->getPort();
 
             // if they're the same, we quit
-            if( $refererUrlHost == $ourHost || $refererUrlHost == "" )
+            if( $refererUrlHost == $ourHost || $refererUrlHost == "" || $refererUrlHost == ":" )
             	return;
 
             // we have to check if a referer with that information exists



More information about the pLog-svn mailing list