Sensitive-test _is_ done in index.php

Этот коммит содержится в:
Mikael Nordfeldth 2015-03-08 19:17:01 +01:00
родитель 1442ca16b4
Коммит d6423bbbc8

Просмотреть файл

@ -36,24 +36,6 @@ class LoginAction extends FormAction
{ {
protected $needLogin = false; protected $needLogin = false;
/**
* Prepare page to run
*
*
* @param $args
* @return string title
*/
protected function prepare(array $args=array())
{
// @todo this check should really be in index.php for all sensitive actions
$ssl = common_config('site', 'ssl');
if (empty($_SERVER['HTTPS']) && ($ssl == 'always' || $ssl == 'sometimes')) {
common_redirect(common_local_url('login'));
}
return parent::prepare($args);
}
/** /**
* Handle input, produce output * Handle input, produce output
* *