mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Made use of new BasicAuth::protect_entire_site() consistent. (from r91658)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@91660 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
22affb95c8
commit
727f930e31
@ -629,7 +629,7 @@ class Email_Template extends Email {
|
||||
class Email_BounceHandler extends Controller {
|
||||
|
||||
function init() {
|
||||
BasicAuth::disable();
|
||||
BasicAuth::protect_entire_site(false);
|
||||
parent::init();
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ class BasicAuth extends Object {
|
||||
* @deprecated Use BasicAuth::protect_entire_site() instead.
|
||||
*/
|
||||
static function enable() {
|
||||
user_error("BasicAuth::enable() is deprated. Use BasicAuth::protect_entire_site() instead.", E_USER_NOTICE);
|
||||
user_error("BasicAuth::enable() is deprecated. Use BasicAuth::protect_entire_site() instead.", E_USER_NOTICE);
|
||||
return self::protect_entire_site();
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ class BasicAuth extends Object {
|
||||
* @deprecated Use BasicAuth::protect_entire_site(false) instead.
|
||||
*/
|
||||
static function disable() {
|
||||
user_error("BasicAuth::disable() is deprated. Use BasicAuth::protect_entire_site(false) instead.", E_USER_NOTICE);
|
||||
user_error("BasicAuth::disable() is deprecated. Use BasicAuth::protect_entire_site(false) instead.", E_USER_NOTICE);
|
||||
return self::protect_entire_site(false);
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ class RestfulServiceTest extends SapphireTest {
|
||||
class RestfulServiceTest_Controller extends Controller {
|
||||
public function index() {
|
||||
ContentNegotiator::disable();
|
||||
BasicAuth::disable();
|
||||
BasicAuth::protect_entire_site(false);
|
||||
$request_count = count($_REQUEST);
|
||||
$get_count = count($_GET);
|
||||
$post_count = count($_POST);
|
||||
@ -98,7 +98,7 @@ XML;
|
||||
|
||||
public function invalid() {
|
||||
ContentNegotiator::disable();
|
||||
BasicAuth::disable();
|
||||
BasicAuth::protect_entire_site(false);
|
||||
$out = <<<XML
|
||||
<?xml version="1.0"?>
|
||||
<test>
|
||||
|
Loading…
x
Reference in New Issue
Block a user