Wixel / GUMP

A fast, extensible & stand-alone PHP input validation class that allows you to validate any data
https://wixelhq.com
MIT License
1.17k stars 341 forks source link

FILTER_SANITIZE_STRING corrupt JSON-string #314

Closed KrasilnikovKB closed 3 years ago

KrasilnikovKB commented 4 years ago

$value = filter_var($value, FILTER_SANITIZE_STRING); in sanitize-function is corrupt JSON-string :(

after FILTER_SANITIZE_STRING json_decode($value) in validate_valid_json_string-function return false.

for example:

image

filisko commented 3 years ago

use valid_json_string? You issue does not belong here.