Fixed a bug for client-side validation

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8843 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-08-23 09:13:25 +00:00
parent 0722dd0643
commit caf604144d

View file

@ -358,6 +358,8 @@ class Validator
$ruleset = basename($this->_xml_path,'.xml');
$content = array();
if(preg_match('@(^|/)files/ruleset/\w+\.xml$@i')) $ruleset = '@'.$ruleset;
// custom rulesets
foreach($this->_rules as $name=>$rule) {
if(strpos('email,userid,url,alpha,alpha_number,number,', $name.',') !== false) continue;