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

add onSanitizeOutputLine prop #25

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Conversation

utkukaratas
Copy link
Contributor

@utkukaratas utkukaratas commented Feb 19, 2021

mandatory for fixing XSS issues.

ps. to see the XSS issue just enter this line in the console example: <img src="xxx" onError="alert('you are screwed')">

pss. i didn't want to fix the XSS right there by escaping the html because it might be what the users of react-console want (maybe add rich elements?). with a callback, it's just up to the user to do his own logic.

@danad02 danad02 merged commit 847e990 into webscopeio:master Feb 24, 2021
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.

3 participants