-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: Comment HTML sanitization and tests for it #7282
Merged
jywarren
merged 1 commit into
publiclab:master
from
VladimirMikulic:add/comment-sanitization-and-unit-tests
Jan 18, 2020
Merged
ADD: Comment HTML sanitization and tests for it #7282
jywarren
merged 1 commit into
publiclab:master
from
VladimirMikulic:add/comment-sanitization-and-unit-tests
Jan 18, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #7282 +/- ##
==========================================
+ Coverage 81.56% 81.61% +0.04%
==========================================
Files 97 97
Lines 5599 5601 +2
==========================================
+ Hits 4567 4571 +4
+ Misses 1032 1030 -2
|
It's also nice to see that my optimization works. 9min 48secs system tests time. |
jywarren
approved these changes
Jan 18, 2020
this is really well done! Thank you, @VladimirMikulic !! 🎉 |
Can you please get your system test 2 task approved and also claim system
test 3 on GCI dashboard?
Thanks all
…On Sat, Jan 18, 2020 at 8:52 AM Jeffrey Warren ***@***.***> wrote:
Merged #7282 <#7282> into master.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#7282?email_source=notifications&email_token=AFAAEQ6KFCR6ED7W6ASS7WLQ6JYYHA5CNFSM4KIMPNOKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWBW3GEI#event-2959979281>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ25S7WFSOTPCJVGXU3Q6JYYHANCNFSM4KIMPNOA>
.
|
NitinBhasneria
pushed a commit
to NitinBhasneria/plots2
that referenced
this pull request
Jan 21, 2020
Unit tests: - "sanitizing comment body for XSS" - "should close incomplete tags" Resolves publiclab#3630 publiclab#3553
vinitshahdeo
pushed a commit
to vinitshahdeo/plots2
that referenced
this pull request
Feb 1, 2020
Unit tests: - "sanitizing comment body for XSS" - "should close incomplete tags" Resolves publiclab#3630 publiclab#3553
NitinBhasneria
pushed a commit
to NitinBhasneria/plots2
that referenced
this pull request
Feb 5, 2020
Unit tests: - "sanitizing comment body for XSS" - "should close incomplete tags" Resolves publiclab#3630 publiclab#3553
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR resolves 2 other PRs, they are closely related so I didn't want to separate them.
I've added HTML sanitization as explained in the comments.
There is no need to specify allowed attributes because
.sanitize
automatically strips malicious attributes.Unit tests:
Demo
Resolves #3630 & #3553