Adds a supportsURLLoading method which returns false to user tokens and user options modules. This prevents them from being linked to direction which fixes an issue where in debug mode logged in users were being served anon tokens and options. This should resolve bug #34469.

This commit is contained in:
Trevor Parscal 2012-02-21 22:08:23 +00:00
parent 3219219c29
commit 4e4e4ec143
2 changed files with 14 additions and 0 deletions

View file

@ -79,6 +79,13 @@ class ResourceLoaderUserOptionsModule extends ResourceLoaderModule {
array( $this->contextUserOptions( $context ) ) );
}
/**
* @return bool
*/
public function supportsURLLoading() {
return false;
}
/**
* @return string
*/

View file

@ -54,6 +54,13 @@ class ResourceLoaderUserTokensModule extends ResourceLoaderModule {
array( $this->contextUserTokens( $context ) ) );
}
/**
* @return bool
*/
public function supportsURLLoading() {
return false;
}
/**
* @return string
*/