Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F32249748
PageGateway.patch
Platonides (platonides)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Platonides
Sep 7 2020, 9:48 PM
2020-09-07 21:48:55 (UTC+0)
Size
594 B
Referenced Files
None
Subscribers
None
PageGateway.patch
View Options
diff --git a/src/mobile.startup/PageGateway.js b/src/mobile.startup/PageGateway.js
index 091cb6b3b..dbd716564 100644
--- a/src/mobile.startup/PageGateway.js
+++ b/src/mobile.startup/PageGateway.js
@@ -53,7 +53,7 @@ function transformSections( sections ) {
// section will not have a parent and will be appended to the result.
sections.forEach( function ( section ) {
if ( section.line !== undefined ) {
- section.line = section.line.replace( /<\/?a\b[^>]*>/g, '' );
+ section.line = section.line.replace( /<\/?a\b("[^"]*"|'[^']*'|[^>])*>/g, '' );
}
section.subsections = [];
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8532250
Default Alt Text
PageGateway.patch (594 B)
Attached To
Mode
T262213: XSS on Pages viewed on Mobile (CVE-2020-26120)
Attached
Detach File
Event Timeline
Log In to Comment