[PATCH ] for 2.2.4

Sergio Monteiro Basto <[email protected]> Sun, 15 May 2005 01:15:29 +0100
Newsgroups gmane.mail.qmail.ldap.phpqladmin
Message-ID <1116116130.3312.3.camel@bastov>
--=-5GcnzLkAbIshIqywCZHU
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

Hi,
I test this on FC3 with php 4.3.11, After trying many time.

I realize that we need in /etc/php.ini at least one of than:
variables_order = "EGPCS"
register_globals = On
register_argc_argv = On

and this patch : 

Thanks,
-- 
Sérgio M.B.

--=-5GcnzLkAbIshIqywCZHU
Content-Disposition: attachment; filename=patch.2.2.4.diff
Content-Type: text/x-patch; name=patch.2.2.4.diff; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

--- phpQLAdmin-2.2.4/include/pql.inc	2005-05-14 15:25:38.000000000 +0100
+++ phpQLAdmin/include/pql.inc	2005-05-15 00:41:57.000000000 +0100
@@ -799,7 +799,7 @@
 
 // {{{ pql_header(uri)
 function pql_header($uri) {
-	header("Location: ".$_SESSION["URI"].$uri);
+	header("Location: ".$_SERVER["SERVERNAME"].$uri);
 	exit;
 }
 // }}}
--- phpQLAdmin-2.2.4/index.php	2005-05-14 15:25:38.000000000 +0100
+++ phpQLAdmin/index.php	2005-05-15 00:46:06.000000000 +0100
@@ -216,7 +216,7 @@
 
 		unset($_POST);
 		session_write_close();
-		pql_header($_SESSION["URI"] . "index.php?msg=$msg");
+		pql_header("index.php?msg=$msg");
 	}
 
 	// We made it, so set all the session variables.


--=-5GcnzLkAbIshIqywCZHU
Content-Type: text/plain; charset=us-ascii

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--=-5GcnzLkAbIshIqywCZHU--