summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-11-11 19:59:25 +0000
committerwn_ <[email protected]>2021-11-11 19:59:25 +0000
commit03495c11ed69f6311e9c7596cc53c5b15ce82bf6 (patch)
treed507596078eeff445b4310690ae3fcbf82b46976 /classes/api.php
parent3f8aaffd3499cd49912c3e2cb663d8572a96851e (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-xclasses/api.php4
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"];
}