ilib.inc.php3: don't add a "/" to $cfgPmaAbsoluteUri if it's empty!

This commit is contained in:
Olivier Müller
2001-08-23 08:50:04 +00:00
parent 3bf3ab1d3b
commit 5470a0ce21
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-08-23 Olivier M<>ller <om@omnis.ch>
* lib.inc.php3: don't add a "/" to $cfgPmaAbsoluteUri if it's empty!
2001-08-22 Robin Johnson <robbat2@orbis-terrarum.net>
* config.inc.php3: $cfgServers[1]['connect_type'] preferred connection type
* lib.inc.php3 - line 285: $cfgServer['connect_type'] implemented

View File

@@ -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');