Date: 01/04/01
- Next message: max: "[phplib-dev] cvs commit"
- Previous message: uw: "[phplib-dev] cvs commit"
- Next in thread: max: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: max
Date: Thu Jan 4 16:33:37 2001
Modified files:
php-lib/php/session/session4_custom.inc
Log message:
Fixed a bug in url().
If the session info is in the QUERY_STRING already, it does not prepend it to the url.
Index: php-lib/php/session/session4_custom.inc
diff -u php-lib/php/session/session4_custom.inc:1.1 php-lib/php/session/session4_custom.inc:1.2
--- php-lib/php/session/session4_custom.inc:1.1 Tue Dec 5 12:00:26 2000
+++ php-lib/php/session/session4_custom.inc Thu Jan 4 16:33:05 2001
@@ -10,7 +10,7 @@
* some of the code taken from Teodor Cimpoesu's session4 class
* Copyright (c) 2000 Teodor Cimpoesu <teo <email protected>>
*
- * $Id: session4_custom.inc,v 1.1 2000/12/05 11:00:26 max Exp $
+ * $Id: session4_custom.inc,v 1.2 2001/01/04 15:33:05 max Exp $
*
*/
@@ -120,6 +120,7 @@
global $HTTP_COOKIE_VARS;
$url=ereg_replace("[&?]+$", "", $url);
+ if (strstr($url, $this->name)) return $url;
if (!$HTTP_COOKIE_VARS[$this->name]) {
$url .= ( strpos($url, "?") != false ? "&" : "?" )
@@ -135,7 +136,6 @@
function self_url() {
global $SCRIPT_NAME, $QUERY_STRING;
-
return $this->url($SCRIPT_NAME.
((isset($QUERY_STRING) && ("" != $QUERY_STRING)) ? "?".$QUERY_STRING : ""));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected>
For additional commands, e-mail: phplib-dev-help <email protected>
- Next message: max: "[phplib-dev] cvs commit"
- Previous message: uw: "[phplib-dev] cvs commit"
- Next in thread: max: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

