From 916b9e62de7815bcce6124d2e06cf21c14519f0d Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 11 Mar 2025 06:19:01 +0100 Subject: [PATCH] Fix double unescaping --- adminer/drivers/mysql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index 236602d4..691ff28b 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -606,7 +606,7 @@ if (!defined('Adminer\DRIVER')) { } if ($maria || $is_text) { $default = preg_replace_callback("~^'(.*)'$~", function ($match) { - return str_replace("''", "'", stripslashes($match[1])); + return stripslashes(str_replace("''", "'", $match[1])); }, $default); } $return[$field] = array(