sanitize: make force_remove_images nullable

This commit is contained in:
Andrew Dolgov 2021-11-20 14:02:37 +03:00
parent 2b4ba59a79
commit e7111e4f14
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class Sanitizer {
* *
* @return false|string The HTML, or false if an error occurred. * @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"])) if (!$owner && isset($_SESSION["uid"]))
$owner = $_SESSION["uid"]; $owner = $_SESSION["uid"];