validate IP syntax (#4094)

This commit is contained in:
Daniel Seifert 2015-06-23 07:49:41 +00:00
parent ea1debf9f1
commit 475405dbb8
2 changed files with 10 additions and 5 deletions

View File

@ -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));
} }
/** /**

View File

@ -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(