From 06b68e3757fa851077ffda16488db62090f55bd5 Mon Sep 17 00:00:00 2001 From: PrestaEdit Date: Sun, 1 Dec 2013 23:39:27 +0100 Subject: [PATCH] //use Tools methods instead of $_GET/$_POST --- controllers/front/ParentOrderController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/front/ParentOrderController.php b/controllers/front/ParentOrderController.php index e0672255e..4bafa3865 100644 --- a/controllers/front/ParentOrderController.php +++ b/controllers/front/ParentOrderController.php @@ -66,7 +66,7 @@ class ParentOrderControllerCore extends FrontController if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1 && Dispatcher::getInstance()->getController() != 'orderopc') { - if (isset($_GET['step']) && $_GET['step'] == 3) + if (Tools::getIsset('step') && Tools::getValue('step') == 3) Tools::redirect('index.php?controller=order-opc&isPaymentStep=true'); Tools::redirect('index.php?controller=order-opc'); } @@ -210,10 +210,10 @@ class ParentOrderControllerCore extends FrontController $this->context->cart->gift = (int)(Tools::getValue('gift')); if ((int)(Tools::getValue('gift'))) { - if (!Validate::isMessage($_POST['gift_message'])) + if (!Validate::isMessage(Tools::getValue('gift_message')) $this->errors[] = Tools::displayError('Invalid gift message.'); else - $this->context->cart->gift_message = strip_tags($_POST['gift_message']); + $this->context->cart->gift_message = strip_tags(Tools::getValue('gift_message')); } if (isset($this->context->customer->id) && $this->context->customer->id)