prefer get parameter for apache redirects
[sc2-widget] / widget.php
index 463ff67f1fef13c14182736797e4aa493c1a99fe..c99611140d654aca1a66b0add7a697e63d0c7a9b 100644 (file)
@@ -17,7 +17,7 @@ function error($message, $status = 500)
        exit;
 }
 
-$request = trim($_SERVER['PATH_INFO'], '/');
+$request = trim($_GET['clan'] ?? $_SERVER['PATH_INFO'], '/');
 $target = "data/$request.json";
 $last = file_exists($target) ? lstat($target)['mtime'] : 0;