mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00: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)
|
||||
{
|
||||
$key = $this->GetPOST($key,"alpha+digit+specialchars",20);
|
||||
$ret[$key]=$this->GetPOST($value);
|
||||
$value = $this->GetPOST($key);
|
||||
if ($value !== null) {
|
||||
$ret[$key] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!empty($ret))
|
||||
@ -153,8 +155,10 @@ class Secure
|
||||
{
|
||||
foreach($this->GET as $key=>$value)
|
||||
{
|
||||
$key = $this->GetGET($key,"alpha+digit+specialchars",20);
|
||||
$ret[$key]=$this->GetGET($value);
|
||||
$value = $this->GetGET($key);
|
||||
if ($value !== null) {
|
||||
$ret[$key] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!empty($ret))
|
||||
|
Loading…
Reference in New Issue
Block a user