diff --git a/ChangeLog b/ChangeLog index 783558e54..9b92f57db 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ $Source$ a reserved word in MySQL * libraries/sqlparser.data.php3: bug 708887: MONTH() and YEAR() are functions + * libraries/common.lib.php3: bug 721278: Skip Explain SQL 2003-04-14 Michal Cihar * lang/some translations: Damn, I didn't commit all empty translations diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index d6f7883f7..40cc61e65 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -1419,7 +1419,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} if (eregi('^SELECT[[:space:]]+', $GLOBALS['sql_query'])) { $explain_link .= urlencode('EXPLAIN ' . $GLOBALS['sql_query']) . '">' . $GLOBALS['strExplain']; } else if (eregi('^EXPLAIN[[:space:]]+SELECT[[:space:]]+', $GLOBALS['sql_query'])) { - $explain_link .= substr($GLOBALS['sql_query'], 8) . '">' . $GLOBALS['strNoExplain']; + $explain_link .= urlencode(substr($GLOBALS['sql_query'], 8)) . '">' . $GLOBALS['strNoExplain']; } else { $explain_link = ''; }