- Fixed a bug while recovering extension on file having a query
This commit is contained in:
parent
8f0ebfdf80
commit
7e92391113
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue