From 5470a0ce2175a918c6546fc6be87c70c9ec68d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20M=C3=BCller?= Date: Thu, 23 Aug 2001 08:50:04 +0000 Subject: [PATCH] ilib.inc.php3: don't add a "/" to $cfgPmaAbsoluteUri if it's empty! --- ChangeLog | 3 +++ lib.inc.php3 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2467a84f4..7bbc3bfc7 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-08-23 Olivier Müller + * lib.inc.php3: don't add a "/" to $cfgPmaAbsoluteUri if it's empty! + 2001-08-22 Robin Johnson * config.inc.php3: $cfgServers[1]['connect_type'] preferred connection type * lib.inc.php3 - line 285: $cfgServer['connect_type'] implemented diff --git a/lib.inc.php3 b/lib.inc.php3 index 66c5fc413..0d7eac7dc 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -95,7 +95,7 @@ if (!defined('__LIB_INC__')){ } // Adds a trailing slash et the end of the phpMyAdmin uri if it does not // exist - if (substr($cfgPmaAbsoluteUri, -1) != '/') { + if ($cfgPmaAbsoluteUri != '' && substr($cfgPmaAbsoluteUri, -1) != '/') { $cfgPmaAbsoluteUri .= '/'; } include('./defines.inc.php3');