Skip to content

Commit 3b01f01

Browse files
committed
AC-12128::[Cloud] Prototype.js security vulnerability CVE-2020-27511
1 parent 83a12d6 commit 3b01f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/prototype/prototype.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ Object.extend(String.prototype, (function () {
643643
}
644644

645645
function stripTags() {
646-
return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?(\/)?>|<\/\w+>/gi, '');
646+
return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>'"])+)?\s*("[^">]*|'[^'>])?(\/)?>|<\/\w+>/gi, '');
647647
}
648648

649649
function stripScripts() {

0 commit comments

Comments
 (0)