- Fixed a bug while recovering extension on file having a query

This commit is contained in:
Dave M. 2023-10-31 14:18:28 +00:00
parent 8f0ebfdf80
commit 7e92391113
1 changed files with 1 additions and 2 deletions

View File

@ -46,8 +46,7 @@ class ApplicationStrategy extends Strategy\ApplicationStrategy {
if ( getenv('DEBUG') && class_exists(\Picea\Asset\Asset::class) ) {
$params = $request->getServerParams();
$scpName = basename(explode('?', $params['SCRIPT_NAME'] ?? $params['REQUEST_URI'] ?? $params['PHP_SELF'] ?? "", 1)[0]);
$scpName = basename(explode('?', $params['REQUEST_URI'] ?? "", 2)[0]);
list(, $ext) = array_pad(explode('.', $scpName), 2, null);
if ($ext && in_array($ext, ApplicationStrategy::ASSET_TRIGGER_UPDATE)) {