validate IP syntax (#4094)
This commit is contained in:
parent
ea1debf9f1
commit
475405dbb8
@ -48,8 +48,13 @@ class d3GeoIP extends oxbase
|
|||||||
$sIP = $this->getIP();
|
$sIP = $this->getIP();
|
||||||
}
|
}
|
||||||
|
|
||||||
$iIPNum = $this->_getNumIp($sIP);
|
$iIPNum = $this->_getNumIp(
|
||||||
$sISOAlpha = $this->LoadByIPNum($iIPNum);
|
oxRegistry::getConfig()->checkParamSpecialChars(
|
||||||
|
str_replace(' ', '', $sIP)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
$sISOAlpha = $this->loadByIPNum($iIPNum);
|
||||||
|
|
||||||
if (!$sISOAlpha)
|
if (!$sISOAlpha)
|
||||||
{
|
{
|
||||||
@ -93,7 +98,7 @@ class d3GeoIP extends oxbase
|
|||||||
|
|
||||||
stopProfile(__METHOD__);
|
stopProfile(__METHOD__);
|
||||||
|
|
||||||
return $sIP;
|
return oxRegistry::getConfig()->checkParamSpecialChars(str_replace(' ', '', $sIP));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -86,9 +86,9 @@ class requConfig
|
|||||||
// benötigt PHP-Extension (kaskadierbar (siehe "Desc1"))
|
// benötigt PHP-Extension (kaskadierbar (siehe "Desc1"))
|
||||||
'hasExtension' => array(
|
'hasExtension' => array(
|
||||||
array(
|
array(
|
||||||
'blExec' => 0,
|
'blExec' => 1,
|
||||||
'aParams' => array(
|
'aParams' => array(
|
||||||
'type' => 'curl',
|
'type' => 'bcmath',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
Loading…
Reference in New Issue
Block a user