according to rfc 2816, the location http header requires an absolute URI
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -20,8 +20,14 @@ $Source$
|
||||
#444767 (Other cases for display=simple).
|
||||
* user_details.php3: fixed some javascript bugs.
|
||||
* tbl_change.php3, lines 26 & 31: added some mysql_die() calls.
|
||||
* lib.inc.php3, lines 135 & 147: go back to the previous calling script
|
||||
that is not a confirmation form.
|
||||
* lib.inc.php3, lines 135 & 147: in case of error in a query, go back to the
|
||||
previous calling script that is not a confirmation form.
|
||||
Fixed also a js bug line 147.
|
||||
* config.inc.php3, lines 27-33; Documentation.html, lines 238-246;
|
||||
db_details.php3, line 37; sql.php3, lines 20, 53 & 184;
|
||||
tbl_properties.php3, lines 45 & 51; tbl_replace, line 143 & 252;
|
||||
tbl_select.php3, line 181: according to rfc 2816, the location http
|
||||
header requires an absolute URI.
|
||||
|
||||
2001-08-19 Olivier M<>ller <om@omnis.ch>
|
||||
* db_readdump.php3: if file contains mutiple queries, only show this line:
|
||||
|
@@ -235,6 +235,15 @@
|
||||
|
||||
<p>All configurable data is placed in <i>config.inc.php3</i>.</p>
|
||||
<dl>
|
||||
<dt><b>$cfgPmaAbsoluteUri</b> string</dt>
|
||||
<dd>
|
||||
Sets here the complete url (with full path) to your phpMyAdmin version.
|
||||
E.g. <tt>http://www.your_web.net/path_to_your_phpMyAdmin_directory/</tt>.
|
||||
<br />
|
||||
Don't forget the slash at the end of your url.
|
||||
<br /><br />
|
||||
</dd>
|
||||
|
||||
<dt><b>$cfgServers</b> array</dt>
|
||||
<dd>
|
||||
Since version 1.4.2, phpMyAdmin supports the administration of multiple
|
||||
|
@@ -24,6 +24,15 @@
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Your phpMyAdmin url
|
||||
*
|
||||
* Complete the variable below with the full url ie
|
||||
* http://www.your_web.net/path_to_your_phpMyAdmin_directory/
|
||||
*/
|
||||
$cfgPmaAbsoluteUri = '';
|
||||
|
||||
|
||||
/**
|
||||
* Server(s) configuration
|
||||
*/
|
||||
|
@@ -34,7 +34,7 @@ $tables = mysql_list_tables($db);
|
||||
$num_tables = @mysql_numrows($tables);
|
||||
// Not a valid db name -> back to the welcome page
|
||||
if (mysql_error() != '') {
|
||||
header('Location: main.php3?lang=' . $lang . '&server=' . $server . '&reload=true');
|
||||
header('Location: ' . $cfgPmaAbsoluteUri . 'main.php3?lang=' . $lang . '&server=' . $server . '&reload=true');
|
||||
exit();
|
||||
}
|
||||
|
||||
|
@@ -144,7 +144,7 @@ if (!defined('__LIB_INC__')){
|
||||
echo '<p>' . "\n";
|
||||
echo ' ' . $GLOBALS['strMySQLSaid'] . ' ' . htmlspecialchars($error_message) . "\n";
|
||||
echo '</p>' . "\n";
|
||||
echo '<a href="javascript:history.go(' . $hist . ')">' . $GLOBALS['strBack'] . '</a>';
|
||||
echo '<a href="javascript:window.history.go(' . $hist . ')">' . $GLOBALS['strBack'] . '</a>';
|
||||
|
||||
include('./footer.inc.php3');
|
||||
exit();
|
||||
|
6
sql.php3
6
sql.php3
@@ -17,7 +17,7 @@ if (isset($store_bkm)) {
|
||||
$fields['label'] = stripslashes($fields['label']);
|
||||
}
|
||||
add_bookmarks($fields, $cfgBookmark);
|
||||
header('Location: ' . $goto);
|
||||
header('Location: ' . $cfgPmaAbsoluteUri . $goto);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ if (isset($btnDrop) && $btnDrop == $strNo) {
|
||||
if (file_exists('./' . $goto)) {
|
||||
include('./' . ereg_replace('\.\.*', '.', $goto));
|
||||
} else {
|
||||
header('Location: ' . $goto);
|
||||
header('Location: ' . $cfgPmaAbsoluteUri . $goto);
|
||||
}
|
||||
exit();
|
||||
} // end if
|
||||
@@ -181,7 +181,7 @@ else {
|
||||
} // end if file_exist
|
||||
else {
|
||||
$message = $zero_rows;
|
||||
header('Location: ' . $goto);
|
||||
header('Location: ' . $cfgPmaAbsoluteUri . $goto);
|
||||
} // end else
|
||||
exit();
|
||||
} // end no rows returned
|
||||
|
@@ -42,13 +42,13 @@ unset($sql_query);
|
||||
$is_db = @mysql_select_db($db);
|
||||
// Not a valid db name -> back to the welcome page
|
||||
if (!$is_db) {
|
||||
header('Location: main.php3?lang=' . $lang . '&server=' . $server . '&reload=true');
|
||||
header('Location: ' . $cfgPmaAbsoluteUri . 'main.php3?lang=' . $lang . '&server=' . $server . '&reload=true');
|
||||
exit();
|
||||
}
|
||||
$is_table = @mysql_query('SHOW TABLES LIKE \'' . sql_addslashes($table, TRUE) . '\'');
|
||||
// Not a valid table name -> back to the db_details.php3
|
||||
if (!@mysql_numrows($is_table)) {
|
||||
header('Location: db_details.php3?lang=' . $lang . '&server=' . $server . '&db=' . urlencode($db) . '&reload=true');
|
||||
header('Location: ' . $cfgPmaAbsoluteUri . 'db_details.php3?lang=' . $lang . '&server=' . $server . '&db=' . urlencode($db) . '&reload=true');
|
||||
exit();
|
||||
}
|
||||
|
||||
|
@@ -140,7 +140,7 @@ if (isset($primary_key) && ($submit_type != $strInsertAsNewRow)) {
|
||||
$message = $strNoModification;
|
||||
include('./' . ereg_replace('\.\.*', '.', $goto));
|
||||
} else {
|
||||
header('Location: ' . $goto);
|
||||
header('Location: ' . $cfgPmaAbsoluteUri . $goto);
|
||||
}
|
||||
exit();
|
||||
}
|
||||
@@ -249,7 +249,7 @@ if (!$result) {
|
||||
$message = $strModifications;
|
||||
include('./' . ereg_replace('\.\.*', '.', $goto));
|
||||
} else {
|
||||
header('Location: ' . $goto);
|
||||
header('Location: ' . $cfgPmaAbsoluteUri . $goto);
|
||||
}
|
||||
exit();
|
||||
} // end if
|
||||
|
@@ -178,7 +178,7 @@ else {
|
||||
. '&pos=0'
|
||||
. '&sessionMaxRows=' . $sessionMaxRows
|
||||
. '&goto=db_details.php3';
|
||||
header('Location: sql.php3?' . $url_query);
|
||||
header('Location: ' . $cfgPmaAbsoluteUri . 'sql.php3?' . $url_query);
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user