mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
Modified GetPOSTArray and GetGETArray, because keys were not filled in
This commit is contained in:
parent
c519d8030a
commit
84eaf1b495
@ -135,8 +135,10 @@ class Secure
|
|||||||
{
|
{
|
||||||
foreach($this->POST as $key=>$value)
|
foreach($this->POST as $key=>$value)
|
||||||
{
|
{
|
||||||
$key = $this->GetPOST($key,"alpha+digit+specialchars",20);
|
$value = $this->GetPOST($key);
|
||||||
$ret[$key]=$this->GetPOST($value);
|
if ($value !== null) {
|
||||||
|
$ret[$key] = $value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!empty($ret))
|
if(!empty($ret))
|
||||||
@ -153,8 +155,10 @@ class Secure
|
|||||||
{
|
{
|
||||||
foreach($this->GET as $key=>$value)
|
foreach($this->GET as $key=>$value)
|
||||||
{
|
{
|
||||||
$key = $this->GetGET($key,"alpha+digit+specialchars",20);
|
$value = $this->GetGET($key);
|
||||||
$ret[$key]=$this->GetGET($value);
|
if ($value !== null) {
|
||||||
|
$ret[$key] = $value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!empty($ret))
|
if(!empty($ret))
|
||||||
|
Loading…
Reference in New Issue
Block a user