diff --git a/ChangeLog b/ChangeLog index 7db3702ba..45b942b48 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ $Source$ * db_details.php3, read_dump.php3, tbl_query_box.php3, lang/*.inc.php3: Feature #506106: Read compressed dump. * lang/italian-*.inc.php3: Updates, thanks again to Pietro Danesi (danone). + * libraries/grab_globals.lib.php3: Fixed bug #638548 (table name with a + quote). 2002-11-16 Marc Delisle * libraries/build_dump.lib.php3: fix for old MySQL, thanks to diff --git a/libraries/grab_globals.lib.php3 b/libraries/grab_globals.lib.php3 index b653ac22e..ac38b90f7 100644 --- a/libraries/grab_globals.lib.php3 +++ b/libraries/grab_globals.lib.php3 @@ -46,5 +46,15 @@ if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) { unset($goto); } // end if + // Strip slahes from $db / $table values + if (get_magic_quotes_gpc()) { + if (isset($db)) { + $db = stripslashes($db); + } + if (isset($table)) { + $table = stripslashes($table); + } + } + } // $__PMA_GRAB_GLOBALS_LIB__ ?>