patch #455752 - Check forbidden words thanks to Dell'Aiera Pol & Olivier Blin

This commit is contained in:
Loïc Chapeaux
2001-08-31 18:24:34 +00:00
parent 2a53688b77
commit c61529029e
6 changed files with 321 additions and 3 deletions

View File

@@ -9,6 +9,17 @@ require('./grab_globals.inc.php3');
require('./header.inc.php3');
/**
* Ensures the db name is valid
*/
if (get_magic_quotes_gpc()) {
$db = stripslashes($db);
}
if (MYSQL_INT_VERSION < 32306) {
check_reserved_words($db);
}
/**
* Executes the db creation sql query
*/