Suggested enhancement: Error text alteration
Permalink 1 user found helpful
As the lack of line numbers (and affected file) are missing from the Error Text, I've replaced the else clause of ($detail === 'debug') of /concrete/src/Error/Handler/ErrorHandler.php with the following:
I'm not sure the h() calls are absolutely necessary, but just in case there's any funky html tags in the error text (or somehow in the file names), this should address any security concerns. Wrapping the whole $estr parameter of the renderError call in an h() - as was in the orig. code - makes the <br>s appear as literal text in the error message.
I'm not sure the h() calls are absolutely necessary, but just in case there's any funky html tags in the error text (or somehow in the file names), this should address any security concerns. Wrapping the whole $estr parameter of the renderError call in an h() - as was in the orig. code - makes the <br>s appear as literal text in the error message.
Have you tried enabling the debug error output?
Dashboard > System & Settings > Environment > Debug Settings > Error Detail > Show the debug error output