mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
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:
parent
0722dd0643
commit
caf604144d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue