Removed direct references to $_REQUEST and $_POST
This commit is contained in:
@@ -22,7 +22,7 @@ class Controller_Admin_Host extends Controller_TemplateDefault_Admin {
|
||||
|
||||
$o = array(
|
||||
'u'=>$hso->manage_username ? $hso->manage_username : strtolower($hso->name),
|
||||
'p'=>(! $k OR ! $this->request->is_ajax() OR ! $hso->loaded() OR ! isset($_REQUEST['k']) OR $k != $_REQUEST['k']) ? Random::char() : $hso->manage_password,
|
||||
'p'=>(! $k OR ! $this->request->is_ajax() OR ! $hso->loaded() OR $k != $this->request->query('k')) ? Random::char() : $hso->manage_password,
|
||||
);
|
||||
|
||||
$this->response->headers('Content-Type','application/json');
|
||||
@@ -57,8 +57,8 @@ class Controller_Admin_Host extends Controller_TemplateDefault_Admin {
|
||||
if (! $hso->loaded())
|
||||
HTTP::redirect('welcome/index');
|
||||
|
||||
if ($_POST) {
|
||||
$hso->values($_POST);
|
||||
if ($this->request->post()) {
|
||||
$hso->values($this->request->post());
|
||||
|
||||
if ($hso->changed() AND ! $hso->save())
|
||||
throw new Kohana_Exception('Unable to save record?');
|
||||
|
Reference in New Issue
Block a user