From fe802e1d6a0278f4caf68d9c45a3da075d5c16a8 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Mon, 5 Dec 2016 21:49:23 +1100 Subject: [PATCH] Fix #12780 Format button replaces all text with blank spaces Signed-off-by: Madhura Jayaratne --- ChangeLog | 1 + libraries/sql-parser/src/Utils/Formatter.php | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4e4f0e34f8..6681099b95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ phpMyAdmin - ChangeLog - issue #12769 Edit/Export links are not clickable under Routines tab - issue #12757 Fixed creating new user with older MariaDB - issue #12784 Remove ctype installation suggestion +- issue #12780 Format button replaces all text with blank spaces 4.6.5.1 (2016-11-25) - issue #12735 Incorrect parameters to escapeString in Node.php diff --git a/libraries/sql-parser/src/Utils/Formatter.php b/libraries/sql-parser/src/Utils/Formatter.php index bcf5486263..1d1944059f 100644 --- a/libraries/sql-parser/src/Utils/Formatter.php +++ b/libraries/sql-parser/src/Utils/Formatter.php @@ -487,6 +487,7 @@ class Formatter } elseif ($this->options['type'] === 'html') { return htmlspecialchars($text, ENT_NOQUOTES); } + return $text; } /**