browsers are beginning to remove the useragent from request headers

This commit is contained in:
Spine
2022-02-18 18:10:56 +00:00
parent 3338906cc0
commit 5ccc942bac

View File

@@ -38,6 +38,9 @@ if (!in_array($Document, VALID_PAGE)) {
$_SERVER['SCRIPT_FILENAME'] = 'error.php';
$Error = 404;
}
if (!isset($_SERVER['HTTP_USER_AGENT'])) {
$_SERVER['HTTP_USER_AGENT'] = '[no-useragent]';
}
// 3. Do we have a viewer?