patch #455752 - Check forbidden words thanks to Dell'Aiera Pol & Olivier Blin
This commit is contained in:
@@ -52,6 +52,11 @@ if (isset($new_name) && trim($new_name) != '') {
|
|||||||
}
|
}
|
||||||
$new_name = stripslashes($new_name);
|
$new_name = stripslashes($new_name);
|
||||||
}
|
}
|
||||||
|
if (MYSQL_INT_VERSION < 32306) {
|
||||||
|
check_reserved_words($db);
|
||||||
|
check_reserved_words($table);
|
||||||
|
}
|
||||||
|
|
||||||
$source = backquote($db) . '.' . backquote($table);
|
$source = backquote($db) . '.' . backquote($table);
|
||||||
$target = backquote($target_db) . '.' . backquote($new_name);
|
$target = backquote($target_db) . '.' . backquote($new_name);
|
||||||
|
|
||||||
|
@@ -15,6 +15,13 @@ require('./lib.inc.php3');
|
|||||||
if (isset($new_name) && trim($new_name) != '') {
|
if (isset($new_name) && trim($new_name) != '') {
|
||||||
$old_name = $table;
|
$old_name = $table;
|
||||||
$table = $new_name;
|
$table = $new_name;
|
||||||
|
if (get_magic_quotes_gpc()) {
|
||||||
|
$new_name = stripslashes($new_name);
|
||||||
|
}
|
||||||
|
if (MYSQL_INT_VERSION < 32306) {
|
||||||
|
check_reserved_words($new_name);
|
||||||
|
}
|
||||||
|
|
||||||
include('./header.inc.php3');
|
include('./header.inc.php3');
|
||||||
mysql_select_db($db);
|
mysql_select_db($db);
|
||||||
$local_query = 'ALTER TABLE ' . backquote($old_name) . ' RENAME ' . backquote($new_name);
|
$local_query = 'ALTER TABLE ' . backquote($old_name) . ' RENAME ' . backquote($new_name);
|
||||||
|
Reference in New Issue
Block a user