Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Newline in Content-Type meta tag breaks the page #1083
What steps will reproduce the problem?
What is the expected output?
What do you see instead?
What version of the product are you using (please check X-Mod-Pagespeed
On what operating system?
Which version of Apache?
Please provide any additional information below, especially a URL or an
Out of curiosity, how do you manage to get newlines embedded in the
On Thu, May 14, 2015 at 5:06 PM, Sachin Sebastian email@example.com
Because I was curious, I checked the spec. It is not valid HTML to embed
Text in element contents
However I agree that the bug is valid, and we should not generate an
On Thu, May 14, 2015 at 6:24 PM, Joshua Marantz firstname.lastname@example.org wrote:
@jmarantz It does look like newline is invalid. That site is one of my client site, so I don't know how that newline came up there in the first place. I was assuming it could be one of the html editors doing it.
For now I've disabled 'convert_meta_tags' filter, and that fixed the issue.
I tried to reproduce this on master, but no luck.
Looking closer, I could figure out the following example would still break, this still reproduces the problem on master for me:
For completeness, sample response headers resulting from similar html input: