Skip to content

Commit 0e1db2e

Browse files
author
Bradie Tilley
committed
Fix double slash issue in resized image URLs
1 parent 9a4232d commit 0e1db2e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

models/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public static function getBasePath(string $subdirectoryPath = null, bool $absolu
248248
// }
249249

250250
if ($subdirectoryPath !== null) {
251-
$path .= '/' . $subdirectoryPath;
251+
$path .= '/' . ltrim($subdirectoryPath, '/');
252252
}
253253

254254
if ($absolute) {

updates/version.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
2.0.0: Optimise image resizing on initial pageload by offloading to separate thread (by resizing when requesting images)
1111
2.0.1: Fix bug (since 2.0.0) where the 'default 404 image' does not utilise the configured background/mode/quality
1212
2.0.2: Implement ability to add watermarks to images
13-
2.1.0: Move default imageresizecache directory (out of app/media) and store+serve images with file extension (change default imagresize cache clear to 1 week)
13+
2.1.0: Move default imageresizecache directory (out of app/media) and store+serve images with file extension (change default imagresize cache clear to 1 week)
14+
2.1.1: Fix double slash issue in resized image URLs

0 commit comments

Comments
 (0)