Skip to content

Add input validation for html param in setHTML() #2035

Merged
JohnMcLear merged 2 commits intoether:dont-die-on-bad-htmlfrom
lebrinkma:dont-die-on-bad-html
Dec 16, 2013
Merged

Add input validation for html param in setHTML() #2035
JohnMcLear merged 2 commits intoether:dont-die-on-bad-htmlfrom
lebrinkma:dont-die-on-bad-html

Conversation

@lebrinkma
Copy link
Copy Markdown
Contributor

Enhancement to feature branch dont-die-on-bad-html:
Add input validation for html param in setHTML(), see my comment on #1449

This also fixes a duplicate doc entry in the dont-die-on-bad-html branch.

Comment thread src/node/db/API.js
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this really qualify as input validation? :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JohnMcLear
It's a basic input validation. :)
It fixes the server crashes if setHTML is called with no html parameter.

I stumbled across this issue when calling setHTML with the parameter text instead of html as the doc in current develop states.
The doc is already fixed in this branch.

You are welcome to propose a better fix for this issue.

JohnMcLear added a commit that referenced this pull request Dec 16, 2013
Add input validation for html param in setHTML()
@JohnMcLear JohnMcLear merged commit 3d8edef into ether:dont-die-on-bad-html Dec 16, 2013
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