mirror of
https://github.com/unraid/webgui.git
synced 2026-03-10 04:49:14 -05:00
allow cache-buster params on whitelisted urls in auth_request
This commit is contained in:
@@ -39,7 +39,7 @@ $arrWhitelist = [
|
||||
'/webGui/images/case-model.png',
|
||||
'/webGui/images/green-on.png'
|
||||
];
|
||||
if (in_array($_SERVER['REQUEST_URI'],$arrWhitelist)) {
|
||||
if (in_array(preg_replace(['/\?v=\d+/','/\?\d+/'],'',$_SERVER['REQUEST_URI']),$arrWhitelist)) {
|
||||
// authorized
|
||||
http_response_code(200);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user