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