|
|
|
@ -303,13 +303,13 @@ void php_filter_number_float(PHP_INPUT_FILTER_PARAM_DECL) |
|
|
|
|
|
|
|
/* depending on flags, strip '.', 'e', ",", "'" */ |
|
|
|
if (flags & FILTER_FLAG_ALLOW_FRACTION) { |
|
|
|
filter_map_update(&map, 2, (unsigned char *) "."); |
|
|
|
filter_map_update(&map, 2, (const unsigned char *) "."); |
|
|
|
} |
|
|
|
if (flags & FILTER_FLAG_ALLOW_THOUSAND) { |
|
|
|
filter_map_update(&map, 3, (unsigned char *) ","); |
|
|
|
filter_map_update(&map, 3, (const unsigned char *) ","); |
|
|
|
} |
|
|
|
if (flags & FILTER_FLAG_ALLOW_SCIENTIFIC) { |
|
|
|
filter_map_update(&map, 4, (unsigned char *) "eE"); |
|
|
|
filter_map_update(&map, 4, (const unsigned char *) "eE"); |
|
|
|
} |
|
|
|
filter_map_apply(value, &map); |
|
|
|
} |
|
|
|
|