[image_hash_ban] stop putting HTML into exception text, fixes #990

This commit is contained in:
Shish
2024-01-05 13:12:44 +00:00
parent 668e99b140
commit aa494efe45
3 changed files with 4 additions and 4 deletions

View File

@@ -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