From 8c7f8921a7652f036015bf4d903be417088340ca Mon Sep 17 00:00:00 2001 From: Noud de Brouwer Date: Mon, 17 Dec 2012 17:33:21 +0000 Subject: [PATCH] Sanitize do not Sanitize::clean() $this->request->data. --- app/Controller/AttributesController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controller/AttributesController.php b/app/Controller/AttributesController.php index 5cd7c64eb..d269e2f00 100755 --- a/app/Controller/AttributesController.php +++ b/app/Controller/AttributesController.php @@ -507,11 +507,11 @@ class AttributesController extends AppController { if (!CakeSession::read('Message.flash')) { $this->Session->setFlash(__('The attribute could not be saved. Please, try again.')); } else { - $this->request->data = Sanitize::clean($this->Attribute->read(null, $id)); + $this->request->data = $this->Attribute->read(null, $id); } } } else { - $this->request->data = Sanitize::clean($this->Attribute->read(null, $id)); + $this->request->data = $this->Attribute->read(null, $id); } // needed for RBAC $this->set('attribute', Sanitize::clean($this->request->data));