This commit is contained in:
Shish 2020-01-26 22:58:59 +00:00
parent a83223f362
commit b98dd3dd76
2 changed files with 2 additions and 2 deletions

View file

@ -365,7 +365,7 @@ class Page
$start = 0; // Start byte
$end = $size - 1; // End byte
header("Content-Length: " . strlen($size));
header("Content-Length: " . $size);
header('Accept-Ranges: bytes');
if (isset($_SERVER['HTTP_RANGE'])) {

View file

@ -59,7 +59,7 @@ class ReportImage extends Extension
} elseif ($event->get_arg(0) == "remove") {
if (!empty($_POST['id'])) {
if ($user->can(Permissions::VIEW_IMAGE_REPORT)) {
send_event(new RemoveReportedImageEvent($_POST['id']));
send_event(new RemoveReportedImageEvent(int_escape($_POST['id'])));
$page->set_mode(PageMode::REDIRECT);
$page->set_redirect(make_link("image_report/list"));
}