Skip to content
Permalink
Browse files

Parameter item_type should be read from $_REQUEST as it can be in bot…

…h $_POST and $_GET

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information...
madhuracj authored and mauriciofauth committed Jul 16, 2018
1 parent 3ac68d2 commit 98ef759676cfc60db56aff657d5f66f818780872
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/classes/Rte/RoutinesTest.php
@@ -64,10 +64,11 @@ public function testGetDataFromRequest($in, $out)
{
global $_POST;
unset($_POST);
unset($_POST); unset($_REQUEST);
foreach ($in as $key => $value) {
if ($value !== '') {
$_POST[$key] = $value;
$_REQUEST[$key] = $value;
}
}
Routines::setGlobals();

0 comments on commit 98ef759

Please sign in to comment.
You can’t perform that action at this time.