mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-12 00:44:01 +02:00
Disable thumbs in cache folder itself.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
* adds Google UA support
|
||||
* extends selectable icon sizes (adds 128px, 192px, 256px, 384px)
|
||||
* improves preview GUI
|
||||
* disable thumbs in `cache` folder
|
||||
* fixes QR code URI origin (issue [#287](https://github.com/lrsjng/h5ai/issues/287))
|
||||
* removes server side file manipulation extensions `dropbox`, `delete` and `rename`
|
||||
* updates H5BP to 4.3.0
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user