Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode HTML characters to avoid XSS #753

Merged
merged 2 commits into from
Nov 29, 2015
Merged

Conversation

OmarElgabry
Copy link
Contributor

This is a quick handy method to convert html characters to entities to avoid XSS attacks and break HTML code.

Test this: http:https://localhost/huge/login?redirect=%2Fhuge%2Fdashboard%2Findex"/><h1>Hello</h1>

@panique
Copy link
Owner

panique commented Nov 29, 2015

Thanks!

panique added a commit that referenced this pull request Nov 29, 2015
Encode HTML characters to avoid XSS
@panique panique merged commit c310928 into panique:develop Nov 29, 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.

None yet

2 participants