Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2977061
T109724_wgInternalRedirectTargetUrl_followup.patch
Mattflaschen-WMF (Matthew Flaschen)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
Mattflaschen-WMF
Nov 19 2015, 10:15 PM
2015-11-19 22:15:13 (UTC+0)
Size
893 B
Referenced Files
None
Subscribers
None
T109724_wgInternalRedirectTargetUrl_followup.patch
View Options
From 937a3ff18523a9840fb172d632adfb42b057fafe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= <matma.rex@gmail.com>
Date: Thu, 19 Nov 2015 17:13:13 -0500
Subject: [PATCH] Add $query to JavaScript redirect info
Bug: T109724
Change-Id: I57a8f75067365d3da6388d2f8f7fe95ed5e6f310
---
includes/MediaWiki.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php
index a11f55f..86fb3c8 100644
--- a/includes/MediaWiki.php
+++ b/includes/MediaWiki.php
@@ -267,7 +267,7 @@ class MediaWiki {
$this->action = null;
$title = $target;
$output->addJsConfigVars( array(
- 'wgInternalRedirectTargetUrl' => $target->getFullURL(),
+ 'wgInternalRedirectTargetUrl' => $target->getFullURL( $query ),
) );
$output->addModules( 'mediawiki.action.view.redirect' );
}
--
2.1.4
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2986798
Default Alt Text
T109724_wgInternalRedirectTargetUrl_followup.patch (893 B)
Attached To
Mode
T109724: A combination of Special:MyPage redirects and pagecounts allows an external site to know the wikipedia login of an user
Attached
Detach File
Event Timeline
Log In to Comment