Skip to content

Commit

Permalink
Incorrect order of operations causes PMA to break with table called ``
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
  • Loading branch information
kamil-tekiela committed Feb 17, 2023
1 parent 57610ae commit 2a12a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2a12a4f

Please sign in to comment.