summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-20 14:02:37 +0300
committerAndrew Dolgov <[email protected]>2021-11-20 14:02:37 +0300
commite7111e4f1422095afcafc92703c4d10dc3358014 (patch)
tree7d97a7cbe6ed2ecb18272235ec41c90ce42f72c5
parent2b4ba59a79aa813f8b4f9e2b600739c6efc22ce3 (diff)
sanitize: make force_remove_images nullable
-rw-r--r--classes/sanitizer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/sanitizer.php b/classes/sanitizer.php
index e0db811c6..e2055930b 100644
--- a/classes/sanitizer.php
+++ b/classes/sanitizer.php
@@ -62,7 +62,7 @@ class Sanitizer {
*
* @return false|string The HTML, or false if an error occurred.
*/
- public static function sanitize(string $str, bool $force_remove_images = false, int $owner = null, string $site_url = null, array $highlight_words = null, int $article_id = null) {
+ public static function sanitize(string $str, ?bool $force_remove_images = false, int $owner = null, string $site_url = null, array $highlight_words = null, int $article_id = null) {
if (!$owner && isset($_SESSION["uid"]))
$owner = $_SESSION["uid"];