What do you think about extending CWebLogRoute in a way, that it won’t append content to the response, if the response is not text/html or application/xhtml+xml (or whatever else identifies html)?
I recently ran into problems after I configured CProfileLogRoute. Since my app didn’t only produce html output, but also json and xml, output of the latter two formats was malformed…
Thanks for the link. I already extended CProfileLogRoute and implemented content-type awareness using a blacklist aproach. It works fine for me, but as I think it is a common problem and not something specific to my app, it might be good to have it in the core.
I’d like to second this request. But make it a whitelist. There’s both, text-based (CSV, XML) and binary content that will easily break when unexpected data is appended. I think text/html and application/xhtml+xml were reasonable defaults.
i think it is helpful in the fact now a days