[pLog-svn] r4693 - plog/branches/lifetype-1.2/class/net/http/session
    oscar at devel.lifetype.net 
    oscar at devel.lifetype.net
       
    Mon Feb  5 17:15:16 EST 2007
    
    
  
Author: oscar
Date: 2007-02-05 17:15:16 -0500 (Mon, 05 Feb 2007)
New Revision: 4693
Modified:
   plog/branches/lifetype-1.2/class/net/http/session/sessionmanager.class.php
Log:
Added Jon's fix
Modified: plog/branches/lifetype-1.2/class/net/http/session/sessionmanager.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/net/http/session/sessionmanager.class.php	2007-02-05 21:49:03 UTC (rev 4692)
+++ plog/branches/lifetype-1.2/class/net/http/session/sessionmanager.class.php	2007-02-05 22:15:16 UTC (rev 4693)
@@ -104,7 +104,7 @@
 				$scriptUrl = HttpVars::getBaseUrl();
 							
 			$url = new Url( $scriptUrl );
-			$domain = str_replace( "www.", ".", $url->getHost());
+			$domain = preg_replace("/^www\./", ".", $url->getHost());
 			
 			// this won't work for top level domains and domains such as
 			// 'localhost' or internal domains for obvious security reasons...
    
    
More information about the pLog-svn
mailing list