Skip to content

Disable loopProtect for non-JavaScript code#12995

Merged
Greenheart merged 1 commit intostagingfrom
unknown repository
Jan 31, 2017
Merged

Disable loopProtect for non-JavaScript code#12995
Greenheart merged 1 commit intostagingfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jan 31, 2017

Pre-Submission Checklist

  • Your pull request targets the staging branch of freeCodeCamp.
  • Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
  • You have only one commit (if not, squash them into one commit).
  • All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

  • Small bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Add new translation (feature adding new translations)

Checklist:

Description

Workaround for loopProtect triggering in HTML code: disable it for pure markup that contains no <script> tags.

@BerkeleyTrue BerkeleyTrue added the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label Jan 31, 2017
@Greenheart Greenheart self-requested a review January 31, 2017 18:44
Copy link
Copy Markdown
Member

@Greenheart Greenheart left a comment

Choose a reason for hiding this comment

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

@leonfeng Thanks for fixing this! I can confirm that this solves the issue.

I've just got a small suggestion for how we could improve readability before we merge this 😄

This comment was marked as off-topic.

@ghost
Copy link
Copy Markdown
Author

ghost commented Jan 31, 2017

@Greenheart Learned something new~ I didn't even know str.includes() existed…

Copy link
Copy Markdown
Member

@Greenheart Greenheart left a comment

Choose a reason for hiding this comment

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

@leonfeng ES6 goodness! 😄

Thanks again!

@Greenheart Greenheart merged commit 9f85870 into freeCodeCamp:staging Jan 31, 2017
@BerkeleyTrue BerkeleyTrue removed the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label Jan 31, 2017
@systimotic
Copy link
Copy Markdown
Member

Thanks for fixing this @leonfeng!

@ghost ghost deleted the fix/loop-protect-html branch March 21, 2018 10:49
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