Skip to content

Commit 2a12a4f

Browse files
committed
Incorrect order of operations causes PMA to break with table called ``
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
1 parent 57610ae commit 2a12a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ public function extract()
292292

293293
if (isset($str[0]) && (($str[0] === '`') || ($str[0] === '"') || ($str[0] === '\''))) {
294294
$quote = $str[0];
295-
$str = str_replace($quote . $quote, $quote, $str);
296295
$str = mb_substr($str, 1, -1, 'UTF-8');
296+
$str = str_replace($quote . $quote, $quote, $str);
297297
}
298298

299299
return $str;

0 commit comments

Comments
 (0)