diff options
author | wn_ <[email protected]> | 2021-11-11 19:59:25 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2021-11-11 19:59:25 +0000 |
commit | 03495c11ed69f6311e9c7596cc53c5b15ce82bf6 (patch) | |
tree | d507596078eeff445b4310690ae3fcbf82b46976 /classes/api.php | |
parent | 3f8aaffd3499cd49912c3e2cb663d8572a96851e (diff) |
Address PHPStan warnings in 'classes/sanitizer.php'.
This also includes some minor tweaks to things that call 'Sanitizer::sanitize()'.
Diffstat (limited to 'classes/api.php')
-rwxr-xr-x | classes/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/api.php b/classes/api.php index 033aa8654..7d6ac174c 100755 --- a/classes/api.php +++ b/classes/api.php @@ -351,7 +351,7 @@ class API extends Handler { $article['content'] = Sanitizer::sanitize( $entry->content, self::_param_to_bool($entry->hide_images), - false, $entry->site_url, false, $entry->id); + null, $entry->site_url, null, $entry->id); } else { $article['content'] = $entry->content; } @@ -746,7 +746,7 @@ class API extends Handler { $headline_row["content"] = Sanitizer::sanitize( $line["content"], self::_param_to_bool($line['hide_images']), - false, $line["site_url"], false, $line["id"]); + null, $line["site_url"], null, $line["id"]); } else { $headline_row["content"] = $line["content"]; } |