Skip to content

handle null bytes in html#1003

Closed
fluffybunnies wants to merge 3 commits intojsdom:masterfrom
fluffybunnies:detect-html
Closed

handle null bytes in html#1003
fluffybunnies wants to merge 3 commits intojsdom:masterfrom
fluffybunnies:detect-html

Conversation

@fluffybunnies
Copy link
Copy Markdown
Contributor

While building a sitemap generator using your lib, I found it not uncommon to receive null bytes in page content. fs.readFile will fail without an error code in this case.

@domenic
Copy link
Copy Markdown
Member

domenic commented Jan 20, 2015

This is fixed in io.js to give ENOENT, but I will merge this for the 3.0.x branch and then revert it for 4.0.x (which is io.js only)

@domenic
Copy link
Copy Markdown
Member

domenic commented Jan 20, 2015

Merged as 2a951e4, with a new release soon!

@domenic domenic closed this Jan 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants