Cicalese has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/363388 )
Change subject: Fix auto login bug for closed wikis/link without page title.
......................................................................
Fix auto login bug for closed wikis/link without page title.
Change-Id: Ie72659b2037cd1525b465e6eea7e8d3f3a4a469a
---
M ext.PluggableAuthAutoLogin.js
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Cicalese: Verified; Looks good to me, approved
diff --git a/ext.PluggableAuthAutoLogin.js b/ext.PluggableAuthAutoLogin.js
index 990c78f..864f816 100644
--- a/ext.PluggableAuthAutoLogin.js
+++ b/ext.PluggableAuthAutoLogin.js
@@ -35,7 +35,7 @@
var re = new RegExp( articlePath );
var path = uri.path;
var matches = path.match( re );
- if ( matches.length > 1 ) {
+ if ( matches && matches.length > 1 ) {
pageName = matches[1];
} else {
pageName = mw.config.get(
'wgMainPageName' );
--
To view, visit https://gerrit.wikimedia.org/r/363388
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie72659b2037cd1525b465e6eea7e8d3f3a4a469a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/PluggableAuth
Gerrit-Branch: master
Gerrit-Owner: Cicalese <[email protected]>
Gerrit-Reviewer: Cicalese <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits