Use read_dump.php instead of sql.php for links, otherwise we'll fail on commas.
This commit is contained in:
@@ -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
|
||||
|
@@ -1571,7 +1571,7 @@ if (typeof(document.getElementById) != 'undefined'
|
||||
$explain_link_validate = '';
|
||||
}
|
||||
|
||||
$explain_link = ' [<a href="sql.php'
|
||||
$explain_link = ' [<a href="read_dump.php'
|
||||
. $url_qpart
|
||||
. $explain_link_validate
|
||||
. '&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 = ' [<a href="sql.php'
|
||||
$php_link = ' [<a href="read_dump.php'
|
||||
. $url_qpart
|
||||
. '&show_query=1'
|
||||
. '&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 .= ' [<a href="sql.php'
|
||||
$php_link .= ' [<a href="read_dump.php'
|
||||
. $url_qpart
|
||||
. '&show_query=1'
|
||||
. '&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 = ' [<a href="sql.php'
|
||||
$refresh_link = ' [<a href="read_dump.php'
|
||||
. $url_qpart
|
||||
. '&show_query=1'
|
||||
. '&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 = ' [<a href="sql.php'
|
||||
$validate_link = ' [<a href="read_dump.php'
|
||||
. $url_qpart
|
||||
. '&show_query=1'
|
||||
. '&sql_query=' . urlencode($local_query)
|
||||
|
Reference in New Issue
Block a user