Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated #74

Open
teibaz opened this issue Sep 13, 2024 · 0 comments
Open

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated #74

teibaz opened this issue Sep 13, 2024 · 0 comments

Comments

@teibaz
Copy link

teibaz commented Sep 13, 2024

Currently phpFITFileAnalysis contains a line (line 1476):
filter_var($tmp_value, FILTER_SANITIZE_STRING);

According php manual this is deprecated as of PHP 8.1.0. It's recommended to use htmlspecialchars() instead. Everything works just fine if we would replace that to:
$this->data_mesgs[$this->data_mesg_info[$this->defn_mesgs[$local_mesg_type]['global_mesg_num']]['mesg_name']][$this->data_mesg_info[$this->defn_mesgs[$local_mesg_type]['global_mesg_num']]['field_defns'][$field_defn['field_definition_number']]['field_name']][] = htmlspecialchars( (string)$tmp_value );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant