Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2006-09-08 20:44:26 +0400
committerMarc Delisle <marc@infomarc.info>2006-09-08 20:44:26 +0400
commit5d88225fe7c471c025a2f11ae8eec387307ef7ce (patch)
treeab243c23d87f61dd2b076b3146afc30cdb9a862d /querywindow.php
parentbac8c6dff51803a42b8dc332cc4e16cddb11c957 (diff)
bug #1549824, SQL history and quote escape
Diffstat (limited to 'querywindow.php')
-rw-r--r--querywindow.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/querywindow.php b/querywindow.php
index 02695b9867..5140ab1c46 100644
--- a/querywindow.php
+++ b/querywindow.php
@@ -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\').'