This commit is contained in:
Garvin Hicking
2003-05-13 10:40:17 +00:00
parent ef840b80d1
commit 9fdea166e3
2 changed files with 4 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ $Source$
* left.php3: Improved performance by using str_replace instead * left.php3: Improved performance by using str_replace instead
of ereg_replace. of ereg_replace.
* lang/german*: Translations. * lang/german*: Translations.
* libraries/common.lib.php3: Fix bug #736609 (Escaping of
'Show as PHP')
2003-05-13 Michal Cihar <nijel@users.sourceforge.net> 2003-05-13 Michal Cihar <nijel@users.sourceforge.net>
* left.php3: Fixed displaying of tables with quote in name. * left.php3: Fixed displaying of tables with quote in name.

View File

@@ -1352,14 +1352,14 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
} }
if (isset($new_line)) { if (isset($new_line)) {
/* SQL-Parser-Analyzer */ /* SQL-Parser-Analyzer */
$query_base = htmlspecialchars($local_query); $query_base = PMA_sqlAddslashes(htmlspecialchars($local_query));
/* SQL-Parser-Analyzer */ /* SQL-Parser-Analyzer */
$query_base = ereg_replace("((\015\012)|(\015)|(\012))+", $new_line, $query_base); $query_base = ereg_replace("((\015\012)|(\015)|(\012))+", $new_line, $query_base);
} else { } else {
$query_base = $local_query; $query_base = $local_query;
} }
if (!empty($GLOBALS['show_as_php'])) { if (!empty($GLOBALS['show_as_php'])) {
$query_base = '$sql = \'' . PMA_sqlAddslashes($query_base); $query_base = '$sql = \'' . $query_base;
} else if (!empty($GLOBALS['validatequery'])) { } else if (!empty($GLOBALS['validatequery'])) {
$query_base = PMA_validateSQL($query_base); $query_base = PMA_validateSQL($query_base);
} else { } else {