allow cache-buster params on whitelisted urls in auth_request

This commit is contained in:
Eric Schultz
2020-01-10 20:08:01 -06:00
parent 979cae1ebe
commit 5ec3b020a4

View File

@@ -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 {