bug #1549824, SQL history and quote escape

This commit is contained in:
Marc Delisle
2006-09-08 16:44:26 +00:00
parent bac8c6dff5
commit 5d88225fe7
2 changed files with 5 additions and 4 deletions

View File

@@ -283,8 +283,8 @@ if ( count( $_sql_history ) > 0
.'querydisplay_tab.value = \'' . $tab . '\';'
.' document.getElementById(\'hiddenqueryform\').'
.'query_history_latest.value = \''
. preg_replace('/(\r|\n)+/i', '\\n',
htmlentities( $sql, ENT_QUOTES ) ) . '\';'
. preg_replace('/(\r|\n)+/i', '\\n',
PMA_jsFormat($sql, false) ) . '\';'
.' document.getElementById(\'hiddenqueryform\').'
.'auto_commit.value = \'false\';'
.' document.getElementById(\'hiddenqueryform\').'
@@ -305,8 +305,8 @@ if ( count( $_sql_history ) > 0
.'querydisplay_tab.value = \'' . $tab . '\';'
.' document.getElementById(\'hiddenqueryform\').'
.'query_history_latest.value = \''
. preg_replace('/(\r|\n)+/i', '\\r\\n',
htmlentities( $sql, ENT_QUOTES ) ) . '\';'
. preg_replace('/(\r|\n)+/i', '\\r\\n',
PMA_jsFormat($sql, false) ) . '\';'
.' document.getElementById(\'hiddenqueryform\').'
.'auto_commit.value = \'true\';'
.' document.getElementById(\'hiddenqueryform\').'