* @return bool
*/
public function checkUrlExtension( $extWhitelist = array() ) {
- global $wgScriptExtension;
- $extWhitelist[] = ltrim( $wgScriptExtension, '.' );
+ $extWhitelist[] = 'php';
if ( IEUrlExtension::areServerVarsBad( $_SERVER, $extWhitelist ) ) {
if ( !$this->wasPosted() ) {
$newUrl = IEUrlExtension::fixUrlForIE6(
return false;
}
+ /**
+ * @since 1.25
+ */
public function setRequestURL( $url ) {
$this->requestUrl = $url;
}
+ /**
+ * @since 1.25 MWException( "getRequestURL not implemented" )
+ * no longer thrown.
+ */
public function getRequestURL() {
if ( $this->requestUrl === null ) {
throw new MWException( 'Request URL not set' );