Page MenuHomePhabricator
Authored By
Grunny
Sep 1 2015, 11:24 AM
Size
951 B
Referenced Files
None
Subscribers
None

T111029.patch

From fc651552254fa197bbc6fcae9e80537c9bba7f74 Mon Sep 17 00:00:00 2001
From: grunny <mwgrunny@gmail.com>
Date: Tue, 1 Sep 2015 20:26:50 +1000
Subject: [PATCH] SECURITY: Encode history URL in review toolbar
---
modules/ext.pageTriage.views.toolbar/ext.pageTriage.articleInfo.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/ext.pageTriage.views.toolbar/ext.pageTriage.articleInfo.js b/modules/ext.pageTriage.views.toolbar/ext.pageTriage.articleInfo.js
index 03e8b23..fc62d17 100644
--- a/modules/ext.pageTriage.views.toolbar/ext.pageTriage.articleInfo.js
+++ b/modules/ext.pageTriage.views.toolbar/ext.pageTriage.articleInfo.js
@@ -20,7 +20,7 @@ $( function() {
this.model.set(
'history_link',
this.model.buildLink(
- mw.config.get( 'wgArticlePath' ).replace( '$1', mw.config.get( 'wgPageName' ) ),
+ mw.util.getUrl( mw.config.get( 'wgPageName' ) ),
'action=history'
)
);
--
1.9.1

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2539434
Default Alt Text
T111029.patch (951 B)

Event Timeline