mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Fixed a bug for a conditional statement containing quotation marks
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8825 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
eee0e538c3
commit
21cb40f010
1 changed files with 1 additions and 1 deletions
|
|
@ -386,7 +386,7 @@ class Validator
|
|||
$ifs = array();
|
||||
if(!isset($filter['if'][0])) $filter['if'] = array($filter['if']);
|
||||
foreach($filter['if'] as $if) {
|
||||
$ifs[] = "{test:'{$if['test']}', attr:'{$if['attr']}', value:'{$if['value']}'}";
|
||||
$ifs[] = "{test:'".addslashes($if['test'])."', attr:'{$if['attr']}', value:'".addslashes($if['value'])."'}";
|
||||
}
|
||||
$field[] = "'if':[".implode(',', $ifs)."]";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue