Use read_dump.php instead of sql.php for links, otherwise we'll fail on commas.

This commit is contained in:
Michal Čihař
2004-06-24 11:28:30 +00:00
parent 098ea1880d
commit d924b831fd
2 changed files with 7 additions and 5 deletions

View File

@@ -14,6 +14,8 @@ $Source$
* scripts/create_tables.sql: Add IF EXISTS.
* libraries/read_dump.lib.php: Ignore comments for SQL splitting,
otherwise unmatched quotes cause problems (bug #978113).
* libraries/common.lib.php: Use read_dump.php instead of sql.php for
links, otherwise we'll fail on commas.
2004-06-23 Marc Delisle <lem9@users.sourceforge.net>
* many files: remove references to older /images, and

View File

@@ -1571,7 +1571,7 @@ if (typeof(document.getElementById) != 'undefined'
$explain_link_validate = '';
}
$explain_link = '&nbsp;[<a href="sql.php'
$explain_link = '&nbsp;[<a href="read_dump.php'
. $url_qpart
. $explain_link_validate
. '&amp;sql_query=';
@@ -1594,7 +1594,7 @@ if (typeof(document.getElementById) != 'undefined'
// php-code (Mike Beck 2002-05-22)
if (isset($cfg['SQLQuery']['ShowAsPHP'])
&& $cfg['SQLQuery']['ShowAsPHP'] == TRUE) {
$php_link = '&nbsp;[<a href="sql.php'
$php_link = '&nbsp;[<a href="read_dump.php'
. $url_qpart
. '&amp;show_query=1'
. '&amp;sql_query=' . urlencode($local_query)
@@ -1608,7 +1608,7 @@ if (typeof(document.getElementById) != 'undefined'
$php_link .= '</a>]';
if (isset($GLOBALS['show_as_php']) && $GLOBALS['show_as_php'] == '1') {
$php_link .= '&nbsp;[<a href="sql.php'
$php_link .= '&nbsp;[<a href="read_dump.php'
. $url_qpart
. '&amp;show_query=1'
. '&amp;sql_query=' . urlencode($local_query)
@@ -1624,7 +1624,7 @@ if (typeof(document.getElementById) != 'undefined'
&& $cfg['SQLQuery']['Refresh']
&& preg_match('@^(SELECT|SHOW)[[:space:]]+@i', $local_query)) {
$refresh_link = '&nbsp;[<a href="sql.php'
$refresh_link = '&nbsp;[<a href="read_dump.php'
. $url_qpart
. '&amp;show_query=1'
. '&amp;sql_query=' . urlencode($local_query)
@@ -1639,7 +1639,7 @@ if (typeof(document.getElementById) != 'undefined'
&& $cfg['SQLValidator']['use'] == TRUE
&& isset($cfg['SQLQuery']['Validate'])
&& $cfg['SQLQuery']['Validate'] == TRUE) {
$validate_link = '&nbsp;[<a href="sql.php'
$validate_link = '&nbsp;[<a href="read_dump.php'
. $url_qpart
. '&amp;show_query=1'
. '&amp;sql_query=' . urlencode($local_query)