Commit 5b0cc60d authored by Mark A. Hershberger's avatar Mark A. Hershberger
Browse files

Add hook to avoid sending redirects if needed

I needed this to allow an SSO-authorized crawler to crawl the site.

The issue I experienced may be the result of bugs in earlier versions of
MediaWiki and/or the result of bugs in the crawler that I have no
ability to fix.

Bug: T126742
Change-Id: Iebc46db741410186508522fe2e50952c6c2915dc
parent 33c80896
......@@ -287,7 +287,9 @@ abstract class PluggableAuth {
$url .= $key . '=' . $value;
}
}
$GLOBALS['wgOut']->redirect( $url );
if ( Hooks::run( 'PluggableAuthRedirect', array( &$url ) ) ) {
$GLOBALS['wgOut']->redirect( $url );
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment