mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-03 08:04:17 +01:00
#497 Portal : Could not update object due to "Warning: preg_match(): Unknown modifier '/'"
SVN:trunk[4461]
This commit is contained in:
@@ -59,9 +59,13 @@ class Validator
|
||||
{
|
||||
if ($bWithSlashes)
|
||||
{
|
||||
$this->sRegExp = str_replace('/', '\\/', $this->sRegExp);
|
||||
$sRet = '/' . str_replace('/', '\\/', $this->sRegExp) . '/';
|
||||
}
|
||||
return ($bWithSlashes) ? '/' . $this->sRegExp . '/' : $this->sRegExp;
|
||||
else
|
||||
{
|
||||
$sRet = $this->sRegExp;
|
||||
}
|
||||
return $sRet;
|
||||
}
|
||||
|
||||
public function GetErrorMessage()
|
||||
|
||||
Reference in New Issue
Block a user