typing
This commit is contained in:
parent
a83223f362
commit
b98dd3dd76
2 changed files with 2 additions and 2 deletions
|
@ -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'])) {
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
|
|
Reference in a new issue