From 852d1509b86a25a0b760d5a22500b99fdbbc4002 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 11 Jun 2003 13:54:25 +0000 Subject: [PATCH] undefined scheme in config mode --- ChangeLog | 1 + main.php3 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 451d491ea..fcd39549a 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2003-06-11 Marc Delisle * libraries/auth/cookie.auth.lib.php3: undefined scheme + * main.php3: undefined scheme 2003-06-10 Marc Delisle * db_details_qbe.php3: bug 751787, missing FROM part in query generator diff --git a/main.php3 b/main.php3 index af16cc50d..dfeb3ddf5 100755 --- a/main.php3 +++ b/main.php3 @@ -20,7 +20,7 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')) { if (!isset($pma_uri_parts)) { $pma_uri_parts = parse_url($cfg['PmaAbsoluteUri']); $cookie_path = substr($pma_uri_parts['path'], 0, strrpos($pma_uri_parts['path'], '/')); - $is_https = ($pma_uri_parts['scheme'] == 'https') ? 1 : 0; + $is_https = (isset($pma_uri_parts['scheme']) && $pma_uri_parts['scheme'] == 'https') ? 1 : 0; } setcookie('lang', $lang, time() + 60*60*24*30, $cookie_path, '', $is_https); // Defines the "item" image depending on text direction