From 2a12a4fd3183aefc48ea0da0664ad8b09e089a8e Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Fri, 17 Feb 2023 17:23:56 +0000 Subject: [PATCH] Incorrect order of operations causes PMA to break with table called `` Signed-off-by: Kamil Tekiela --- src/Token.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Token.php b/src/Token.php index db944ebf7..5fd9f41dd 100644 --- a/src/Token.php +++ b/src/Token.php @@ -292,8 +292,8 @@ public function extract() if (isset($str[0]) && (($str[0] === '`') || ($str[0] === '"') || ($str[0] === '\''))) { $quote = $str[0]; - $str = str_replace($quote . $quote, $quote, $str); $str = mb_substr($str, 1, -1, 'UTF-8'); + $str = str_replace($quote . $quote, $quote, $str); } return $str;