nette / tracy

😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.
https://tracy.nette.org
Other
1.76k stars 218 forks source link

BlueScreen displays "\r\n" and "\t" in exception's message #492

Closed EvilKraft closed 3 years ago

EvilKraft commented 3 years ago

Version: 2.8.4

Bug Description

... BlueScreen displays "\r\n" and "\t" in exception's message

Steps To Reproduce

... Make an SQL error.

https://ibb.co/16GJ69D

Expected Behavior

... Expected clear message text

Possible Solution

in Tracy/BlueScreen/BlueScreen->formatMessage() line 375 Add: $msg = str_replace('<i>\r\n</i>', '', $msg); $msg = str_replace('<i>\t</i>', '', $msg);