|
@@ -44,7 +44,7 @@ class Pages extends BaseController
|
|
|
$f3->clear('COOKIE.consegna');
|
|
$f3->clear('COOKIE.consegna');
|
|
|
$f3->clear('COOKIE.labelid');
|
|
$f3->clear('COOKIE.labelid');
|
|
|
} else {
|
|
} else {
|
|
|
- $stepValues = array_map('strtoupper', $f3->get('POST'));
|
|
|
|
|
|
|
+ $stepValues = array_map('strtoupper', $this->getSanitizedPostRequest());
|
|
|
if (count($stepValues) == 0)
|
|
if (count($stepValues) == 0)
|
|
|
$stepValues = json_decode($f3->get('COOKIE.p2l'), true);
|
|
$stepValues = json_decode($f3->get('COOKIE.p2l'), true);
|
|
|
}
|
|
}
|
|
@@ -152,7 +152,7 @@ class Pages extends BaseController
|
|
|
if ($args['step'] == 1)
|
|
if ($args['step'] == 1)
|
|
|
$f3->clear('COOKIE.bind');
|
|
$f3->clear('COOKIE.bind');
|
|
|
else {
|
|
else {
|
|
|
- $stepValues = array_map('strtoupper', $f3->get('POST'));
|
|
|
|
|
|
|
+ $stepValues = array_map('strtoupper', $this->getSanitizedPostRequest());
|
|
|
if (count($stepValues) == 0)
|
|
if (count($stepValues) == 0)
|
|
|
$stepValues = json_decode($f3->get('COOKIE.p2l'), true);
|
|
$stepValues = json_decode($f3->get('COOKIE.p2l'), true);
|
|
|
}
|
|
}
|
|
@@ -211,7 +211,7 @@ class Pages extends BaseController
|
|
|
|
|
|
|
|
public function UnBind($f3, array $args)
|
|
public function UnBind($f3, array $args)
|
|
|
{
|
|
{
|
|
|
- $stepValues = array_map('strtoupper', $f3->get('POST'));
|
|
|
|
|
|
|
+ $stepValues = array_map('strtoupper', $this->getSanitizedPostRequest());
|
|
|
if ($args['step'] == 2) {
|
|
if ($args['step'] == 2) {
|
|
|
$success = $this->findBoxCore->UnBind($stepValues['labelid']);
|
|
$success = $this->findBoxCore->UnBind($stepValues['labelid']);
|
|
|
if ($success['err'] <> 0) {
|
|
if ($success['err'] <> 0) {
|