harden preg_replace() in auth_request.php

This commit is contained in:
Eric Schultz
2020-01-16 15:06:14 -06:00
parent 23c7c420ee
commit 1254b79856

View File

@@ -39,7 +39,7 @@ $arrWhitelist = [
'/webGui/images/case-model.png',
'/webGui/images/green-on.png'
];
if (in_array(preg_replace(['/\?v=\d+/','/\?\d+/'],'',$_SERVER['REQUEST_URI']),$arrWhitelist)) {
if (in_array(preg_replace(['/\?v=\d+$/','/\?\d+$/'],'',$_SERVER['REQUEST_URI']),$arrWhitelist)) {
// authorized
http_response_code(200);
} else {