summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-11-24 23:30:08 +0300
committerAndrew Dolgov <[email protected]>2022-11-24 23:30:08 +0300
commit77ad02bcfa4f24529068dab041d0cba2f5afc406 (patch)
tree8aaad681310a6a7428f5409284f2a5090a50237b /init.php
parente6b5818a51d71535d5fad1903a2858c39e8ff027 (diff)
force basename() on requested files
Diffstat (limited to 'init.php')
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 95de7aa..7f8d5f5 100644
--- a/init.php
+++ b/init.php
@@ -87,7 +87,7 @@ class Cache_S3 extends Plugin implements Cache_Adapter {
}
public function get_full_path(string $filename): string {
- return 's3://' . Config::get(self::CACHE_S3_BUCKET) . '/' . $this->dir . '/' . $filename;
+ return 's3://' . Config::get(self::CACHE_S3_BUCKET) . '/' . $this->dir . '/' . basename(clean($filename));
}
public function get_mime_type(string $filename) {