Update dispatch.php

This commit is contained in:
danpros 2025-11-03 13:05:40 +07:00
commit dde01601bd

View file

@ -720,8 +720,8 @@ function create_thumb($src, $desired_width = null, $desired_height = null) {
$h = null;
}
$path = parse_url($src, PHP_URL_PATH);
$fileName = rawurldecode(basename($path));
$path = pathinfo($src, PATHINFO_FILENAME);
$fileName = rawurldecode($path);
$thumbFile = $dir . '/' . $fileName . '-' . $desired_width . $h .'.webp';
if (file_exists($thumbFile)) {