[pLog-svn] r4693 - plog/branches/lifetype-1.2/class/net/http/session

Jon Daley plogworld at jon.limedaley.com
Mon Feb 5 17:16:03 EST 2007


 	I didn't test it, or even compile it, so you should make sure that 
it is doing what it is supposed to.

On Mon, 5 Feb 2007, oscar at devel.lifetype.net wrote:

> 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...
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>

-- 
Jon Daley
http://jon.limedaley.com/

Television has proved that people will
look at anything rather than each other.
-- Ann Landers


More information about the pLog-svn mailing list