Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.
This repository was archived by the owner on May 8, 2025. It is now read-only.

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated #74

@teibaz

Description

@teibaz

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 );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions