mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 22:45:14 -04:00
Disable thumbs in cache folder itself.
This commit is contained in:
parent
06b10974ab
commit
c240ee117d
2 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,9 @@ class Thumb {
|
|||
public function thumb($type, $source_url, $mode, $width, $height) {
|
||||
|
||||
$source_path = $this->app->to_path($source_url);
|
||||
if (!file_exists($source_path) || starts_with($source_path, CACHE_PATH)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ($type === "img") {
|
||||
$capture_path = $source_path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue