|
@@ 242-246 (lines=5) @@
|
| 239 |
|
// cas du filtre sans argument ou du critere / |
| 240 |
|
if (($suite && ($suite[0] != '{')) || ($fonc && $fonc[0] == '/')) { |
| 241 |
|
// si pas d'argument, alors il faut une fonction ou un double | |
| 242 |
|
if (!$match[1]) { |
| 243 |
|
$err_f = array('zbug_erreur_filtre', array('filtre' => $texte)); |
| 244 |
|
erreur_squelette($err_f, $pointeur_champ); |
| 245 |
|
$texte = ''; |
| 246 |
|
} else $texte = $suite; |
| 247 |
|
if ($err_f) $pointeur_champ->param = false; |
| 248 |
|
elseif ($fonc!=='') $pointeur_champ->param[] = $res; |
| 249 |
|
// pour les balises avec faux filtres qui boudent ce dur larbeur |
|
@@ 263-269 (lines=7) @@
|
| 260 |
|
$f2 = preg_match ("/^(')([^']*)(')(.*)$/ms", $args, $regs); |
| 261 |
|
if (!($f1 OR $f2)) { |
| 262 |
|
preg_match("/^([[:space:]]*)([^,([{}]*([(\[{][^])}]*[])}])?[^,}]*)([,}].*)$/ms", $args, $regs); |
| 263 |
|
if (!strlen($regs[2])) |
| 264 |
|
{ |
| 265 |
|
$err_f = array('zbug_erreur_filtre', array('filtre' => $args)); |
| 266 |
|
erreur_squelette($err_f, $pointeur_champ); |
| 267 |
|
$args = ""; |
| 268 |
|
break; |
| 269 |
|
} |
| 270 |
|
} |
| 271 |
|
$arg = $regs[2]; |
| 272 |
|
if (trim($regs[1])) { |