[TYPO3-core] RFC #15093: Bug: debug() "pre-processes" the output so you don't see the real values anymore
Susanne Moog
info at susannemoog.de
Mon Sep 6 10:53:50 CEST 2010
Hey,
This is an SVN patch request.
Type: Bug
Bugtracker references:
http://bugs.typo3.org/view.php?id=
Branches:
4-4, trunk
Problem:
Just found out that if you do a
debug('\%hello\%how\_is\_this?');
it produces:
|%hello%how_is_this?|
whereas
var_dump('\%hello\%how\_is\_this?');
produces correctly:
string '\%hello\%how\_is\_this?' (length=23)
Solution:
Happens only in the backend with the ExtJS console because in JS the
single backslash is used to escape the HTML. Problem is whenever you
have a single backslash that you want to output it is replaced, too.
Simple solution: Escape the backslash.
Notes / How to test:
Just try a
debug('\%hello\%how\_is\_this?');
somewhere in the backend.
Best regards,
Susanne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15093_v1.diff
Type: text/x-diff
Size: 717 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100906/f621b6dd/attachment.diff>
More information about the TYPO3-team-core
mailing list