#497 Portal : Could not update object due to "Warning: preg_match(): Unknown modifier '/'"

SVN:trunk[4461]
This commit is contained in:
Guillaume Lajarige
2016-10-21 08:29:36 +00:00
parent 359dc73526
commit e48ad8cb61

View File

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