From 4276852c828c87680c7e224df57f094af0dcdfb4 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 11 May 2004 12:57:49 +0000 Subject: [PATCH] use PMA_sendHeaderLocation --- ChangeLog | 4 ++++ db_details_common.php | 2 +- sql.php | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f10bdafc1..1ea1f6f37 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-05-11 Marc Delisle + * tbl_replace.php, tbl_indexes.php, sql.php, db_details_common.php: + use PMA_sendHeaderLocation() + 2004-05-11 Michal Čihař * libraries/sqlparser.lib.php: Modified pretty printer to display nicer queries generated by our db search. diff --git a/db_details_common.php b/db_details_common.php index ed75ebdba..283d5cbe2 100644 --- a/db_details_common.php +++ b/db_details_common.php @@ -28,7 +28,7 @@ if (!isset($is_db) || !$is_db) { $is_db = PMA_DBI_select_db($db); } if (empty($db) || !$is_db) { - header('Location: ' . $cfg['PmaAbsoluteUri'] . 'main.php?' . PMA_generate_common_url('', '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); + PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . 'main.php?' . PMA_generate_common_url('', '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); exit; } } // end if (ensures db exists) diff --git a/sql.php b/sql.php index fa3d0436d..02bda9cfc 100644 --- a/sql.php +++ b/sql.php @@ -74,7 +74,7 @@ if (!defined('PMA_CHK_DROP') if (isset($store_bkm)) { require_once('./libraries/bookmark.lib.php'); PMA_addBookmarks($fields, $cfg['Bookmark'], (isset($bkm_all_users) && $bkm_all_users == 'true' ? true : false)); - header('Location: ' . $cfg['PmaAbsoluteUri'] . $goto); + PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . $goto); } // end if @@ -167,7 +167,7 @@ if (isset($btnDrop) && $btnDrop == $strNo) { $active_page = $goto; require('./' . preg_replace('@\.\.*@', '.', $goto)); } else { - header('Location: ' . $cfg['PmaAbsoluteUri'] . str_replace('&', '&', $goto)); + PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . str_replace('&', '&', $goto)); } exit(); } // end if @@ -604,7 +604,7 @@ else { require('./' . $goto); } // end if file_exist else { - header('Location: ' . $cfg['PmaAbsoluteUri'] . str_replace('&', '&', $goto) . '&message=' . urlencode($message)); + PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . str_replace('&', '&', $goto) . '&message=' . urlencode($message)); } // end else exit(); } // end no rows returned