Index: trunk/extensions/Widgets/smarty_plugins/modifier.validate.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | 'ip' => FILTER_VALIDATE_IP |
23 | 23 | ); |
24 | 24 | |
25 | | - if (array_key_exists($type, $filters) && filter_var($string, $filters[$type])) |
| 25 | + if (array_key_exists($type, $filters) && filter_var($string, $filters[$type]) !== FALSE) |
26 | 26 | { |
27 | 27 | return $string; |
28 | 28 | } |