Uh oh!
There was an error while loading. Please reload this page.
Update regex for striptags method to prevent regex dos - #349
Open
jwestbrook wants to merge 2 commits into
Open
Conversation
erik-krogh
commented
Jan 19, 2021
👍 |
codemasher added a commit
to codemasher/prototype
that referenced
this pull request
Mar 2, 2021
Open
Collaborator
Heya, is there a test somewhere demonstrating that this works? Thanks. Ideally, this should be added to master/test/unit/tests/string.test.js |
elhennig
commented
Mar 16, 2022
Is there any plan to create a new release including this fix? |
This RegEx does not seem to work i tried in my project MY unit tests are failing since the UI id being created using this are incorrect/changed. Any ideas? |
madhusudhanreddyvade
commented
May 20, 2022
Try below function stripTags() { |
This was referenced Feb 1, 2023
Closed
AyushRawat1996
commented
Jul 28, 2023
Can anyone please update on this PR? |
savetheclocktower
commented
Jul 28, 2023
Collaborator
The project is not active and will not be doing further releases. You are encouraged to apply this fix yourself after loading String.prototype.stripTags=function(){returnthis.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>'"])+)?\s*("[^">]*|'[^'>])?(\/)?>|<\/\w+>/gi,'');}; |
jesusbagpuss added a commit
to jesusbagpuss/eprints3.4
that referenced
this pull request
Feb 19, 2025
Prototype isn't maintained, but the CVE can be resolved. Taken from: prototypejs/prototype#349
drn05r pushed a commit
to eprints/eprints3.4
that referenced
this pull request
Mar 6, 2025
* Update 20_prototype.js for CVE-2020-27511 Prototype isn't maintained, but the CVE can be resolved. Taken from: prototypejs/prototype#349 * Update 20_prototype.js Change Version string * Make mis-matched single-quotes greedier
This file contains hidden or 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
Sign up for freeto 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.
Per conversation, here is the Pull Request for the advisory. Attempt 2