Date: Fri May 26 09:28:43 CEST 2006
User: Derick Rethans
Directory: xdebug
Log Message:
[0.25]
- Only escape the error in case we're in HTML error mode.
Modified files:
xdebug/xdebug.c (version: 1.318)
[FILE: /xdebug/xdebug.c]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.317
retrieving revision 1.318
diff -u -r1.317 -r1.318
--- xdebug/xdebug.c:1.317 Mon May 15 19:41:05 2006 GMT
+++ xdebug/xdebug.c Fri May 26 05:28:43 2006 GMT
@@ -1528,9 +1528,13 @@
"<tr><th align='left' bgcolor='#ee5555' colspan=\"3\">%s: <i>%s</i> in <i>%s</i> on line <i>%d</i></th></tr>\n"
: "\n%s: %s in %s on line %d\n";
if (!log_only) {
- error_string = xmlize(buffer, strlen(buffer), &dummy);
- php_printf(error_format, error_type_str, error_string, error_filename, error_lineno);
- efree(error_string);
+ if (html) {
+ error_string = xmlize(buffer, strlen(buffer), &dummy);
+ php_printf(error_format, error_type_str, error_string, error_filename, error_lineno);
+ efree(error_string);
+ } else {
+ php_printf(error_format, error_type_str, buffer, error_filename, error_lineno);
+ }
}
if (XG(stack) && XG(stack)->size) {
Received on Fri May 26 2006 - 09:29:14 BST
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST