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

Do not use .html() to markup accesskey #299

Merged
merged 1 commit into from
Oct 26, 2015
Merged

Do not use .html() to markup accesskey #299

merged 1 commit into from
Oct 26, 2015

Conversation

arai-a
Copy link
Contributor

@arai-a arai-a commented Oct 25, 2015

83e37fb changes .text() back to .html(), and it introduces the XSS risk again, that was once fixed by f3137f2

accesskey's span element should be inserted separately from before/after text, to avoid parsing HTML there.

item._beforeAccesskey = matched[1];
item._accesskey = matched[2];
item._afterAccesskey = matched[3];
console.log(matched);
Copy link
Member

Choose a reason for hiding this comment

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

Think you forgot a console.log here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, thank you!
I'll fix it soon.

@bbrala
Copy link
Member

bbrala commented Oct 26, 2015

Wow, did i just catch you right here or something? Changing it in 2 minutes :)

bbrala added a commit that referenced this pull request Oct 26, 2015
Do not use .html() to markup accesskey thanks @arai-a
@bbrala bbrala merged commit c2af55c into swisnl:master Oct 26, 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