From 9698d301f86da8e4e1de07c3511d5af0bcc85ea3 Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Sun, 18 Oct 2015 22:14:20 +0200 Subject: [PATCH] Fix #11550 Regression in Find and replace Signed-off-by: Hugues Peccatte --- ChangeLog | 1 + libraries/controllers/table/TableSearchController.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 364ba929be..c71954687d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ phpMyAdmin - ChangeLog + issue #11438 Support JSON data type + issue Editing partitions in table Structure - issue Tracking does not make sense for information_schema +- issue #11550 Regression in Find and replace 4.5.2.0 (not yet released) diff --git a/libraries/controllers/table/TableSearchController.php b/libraries/controllers/table/TableSearchController.php index bc324cc903..f5b91fa783 100644 --- a/libraries/controllers/table/TableSearchController.php +++ b/libraries/controllers/table/TableSearchController.php @@ -622,11 +622,14 @@ class TableSearchController extends TableController */ public function findAction() { + $useRegex = array_key_exists('useRegex', $_POST) + && $_POST['useRegex'] == 'on'; + $preview = $this->getReplacePreview( $_POST['columnIndex'], $_POST['find'], $_POST['replaceWith'], - $_POST['useRegex'], + $useRegex, $this->_connectionCharSet ); $this->response->addJSON('preview', $preview);