diff --git a/ext/image_hash_ban/main.php b/ext/image_hash_ban/main.php index 810b3a8e..18870362 100644 --- a/ext/image_hash_ban/main.php +++ b/ext/image_hash_ban/main.php @@ -82,7 +82,7 @@ class ImageBan extends Extension $row = $database->get_row("SELECT * FROM image_bans WHERE hash = :hash", ["hash" => $event->hash]); if ($row) { log_info("image_hash_ban", "Attempted to upload a blocked image ({$event->hash} - {$row['reason']})"); - throw new UploadException("Post ".html_escape($row["hash"])." has been banned, reason: ".format_text($row["reason"])); + throw new UploadException("Post {$row["hash"]} has been banned, reason: {$row["reason"]}"); } } diff --git a/ext/res_limit/main.php b/ext/res_limit/main.php index 69c61f33..8b9c470b 100644 --- a/ext/res_limit/main.php +++ b/ext/res_limit/main.php @@ -54,7 +54,7 @@ class ResolutionLimit extends Extension if ($valids > 0 && !$ok) { throw new UploadException( "Post needs to be in one of these ratios: ". - html_escape($config->get_string("upload_ratios", "")) + $config->get_string("upload_ratios", "") ); } } diff --git a/ext/upload/main.php b/ext/upload/main.php index e64299ab..aeb5e3c7 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -405,10 +405,10 @@ class Upload extends Extension $headers = fetch_url($url, $tmp_filename); if (is_null($headers)) { log_warning("core-util", "Failed to fetch $url"); - throw new UploadException("Error reading from " . html_escape($url)); + throw new UploadException("Error reading from $url"); } if (filesize($tmp_filename) == 0) { - throw new UploadException("No data found in " . html_escape($url) . " -- perhaps the site has hotlink protection?"); + throw new UploadException("No data found in $url -- perhaps the site has hotlink protection?"); } // Parse metadata