mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 23:01:14 +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…
x
Reference in New Issue
Block a user