mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 16:15:49 +03:00
[GH-ISSUE #537] BrowserConsoleHandler doesn't quote backslashes #188
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @torohill on GitHub (Apr 7, 2015).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/537
I'm logging SQL statements to the browser console and was finding that backslashes weren't being quoted correctly in the generated Javascript.
For example, I was trying to log something like this:
And the Javascript generated looked like this:
This causes a syntax error because the sequence
href=\\"httpis not quoted correctly.I found that making the following change to
BrowserConsoleHandler.phpfixed the problem in my particular case:After this change the generated Javascript looked like this: