Skip to content

Commit

Permalink
Merge pull request #10 from davewoloszyn/fix_filter_deprecation
Browse files Browse the repository at this point in the history
Fixed FILTER_SANITIZE_STRING deprecations in PHP 8.1
  • Loading branch information
mrubinsk committed May 19, 2023
2 parents 7257fd2 + e7e85fd commit 55dfade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Horde/Variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ public function filter($varname)
}

return is_array($val)
? filter_var_array($val, FILTER_SANITIZE_STRING)
: filter_var($val, FILTER_SANITIZE_STRING);
? filter_var_array($val, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_NO_ENCODE_QUOTES)
: filter_var($val, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_NO_ENCODE_QUOTES);
}

/* Protected methods. */
Expand Down

0 comments on commit 55dfade

Please sign in to comment.