git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4460 a333f486-631f-4898-b8df-5754b55c2be0
@@ -57,6 +57,10 @@ class Validator
*/
public function GetRegExp($bWithSlashes = false)
{
+ if ($bWithSlashes)
+ {
+ $this->sRegExp = str_replace('/', '\\/', $this->sRegExp);
+ }
return ($bWithSlashes) ? '/' . $this->sRegExp . '/' : $this->sRegExp;
}