Browse Source

Fix

pull/3/head
M@d D3n 7 years ago
parent
commit
050782baf9
  1. 861
      class/class.thumbnail.php
  2. 15
      inc/thumb.php

861
class/class.thumbnail.php

File diff suppressed because it is too large Load Diff

15
inc/thumb.php

@ -133,13 +133,6 @@
exit;
}
else
{
report404();
header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
exit(0);
}
list(, $thumbPath) = explode('/' . UPLOAD_DIR . '/', dirname($imagefile), 2);
@ -148,6 +141,12 @@
// --
if ($lenThumbDir && substr($thumbPath, -$lenThumbDir) != THUMBNAIL_DIR)
{
if (! file_exists($baseDir . $imagefile))
{
report404();
header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
}
exit(0);
}
@ -246,9 +245,7 @@
$imageName = 'noimage.png';
if (! file_exists("$imagePath/$imageName"))
{
$imagePath = $baseDir . '/' . UPLOAD_DIR . '/images';
}
if (! file_exists("$imagePath/$imageName"))
exit(0);

Loading…
Cancel
Save