CSteipp has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/93860


Change subject: Fix SpecialPage name for api
......................................................................

Fix SpecialPage name for api

MWOAuthAPISetup::getOAuthAccessToken specifically excludes processing
on Special:OAuth so it doesn't duplicate checking the nonce.

Rename patch missed this reference to the special page.

Change-Id: I567ec645ca83bcb4a64d6f8714177e88fc16a690
---
M api/MWOAuthAPI.setup.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OAuth 
refs/changes/60/93860/1

diff --git a/api/MWOAuthAPI.setup.php b/api/MWOAuthAPI.setup.php
index 69819be..f4fda05 100644
--- a/api/MWOAuthAPI.setup.php
+++ b/api/MWOAuthAPI.setup.php
@@ -52,7 +52,7 @@
                        $context = RequestContext::getMain();
                        $request = $context->getRequest();
                        $title = $context->getTitle();
-                       if ( !MWOAuthUtils::hasOAuthHeaders( $request ) || 
$title->isSpecial( 'MWOAuth' ) ) {
+                       if ( !MWOAuthUtils::hasOAuthHeaders( $request ) || 
$title->isSpecial( 'OAuth' ) ) {
                                $result = null;
                        } else {
                                try {

-- 
To view, visit https://gerrit.wikimedia.org/r/93860
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I567ec645ca83bcb4a64d6f8714177e88fc16a690
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OAuth
Gerrit-Branch: master
Gerrit-Owner: CSteipp <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to