fix request
authorAlan <alan@roojs.com>
Thu, 13 Apr 2023 07:44:01 +0000 (15:44 +0800)
committerAlan <alan@roojs.com>
Thu, 13 Apr 2023 07:44:01 +0000 (15:44 +0800)
Asset.php

index bc1edc3..5fc3e6a 100644 (file)
--- a/Asset.php
+++ b/Asset.php
@@ -46,7 +46,7 @@ class Pman_Core_Asset extends Pman {
         }
        
         $ext = $bits[0];
-        if (preg_match('/\.map$/',$_REQUEST_URI)) {
+        if (preg_match('/\.map$/',$_SERVER['REQUEST_URI'])) {
             $ext = 'map';
         }