Skip to content

fix: preg_replace evaluate double backslash for mysql driver and keep…#1488

Closed
hichxm wants to merge 1 commit intofruitcake:masterfrom
hichxm:master
Closed

fix: preg_replace evaluate double backslash for mysql driver and keep…#1488
hichxm wants to merge 1 commit intofruitcake:masterfrom
hichxm:master

Conversation

@hichxm
Copy link
Copy Markdown

@hichxm hichxm commented Oct 20, 2023

Close #1482

… only one backslash instead of keep both backslash
@barryvdh barryvdh closed this Feb 9, 2024
@barryvdh barryvdh reopened this Feb 9, 2024
@angeljqv
Copy link
Copy Markdown
Contributor

Also highlightjs does not support mysql/mariadb, postgres sql syntax/some keywords, example

-- escaped quote fails
select cast('text\' test' as char) as `field`; --'  dont work in highlightjs but works here and on other plugins

@barryvdh
Copy link
Copy Markdown
Member

barryvdh commented Jan 2, 2026

The binding is now done by Laravel, and if not possible by the php-debugbar query formatter. But thanks anyways!

@barryvdh barryvdh closed this Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debugbar queries replaced by one backslash instead of two

3 participants