url
This commit is contained in:
parent
5df5a0ad7a
commit
6e0795bbdf
@ -30,7 +30,12 @@ switch ($url[0]) {
|
||||
}
|
||||
$ip = getUserIP();
|
||||
|
||||
$viewport = $_REQUEST['viewport'];
|
||||
$viewport = $_REQUEST['viewport'] ?? '1024x768';
|
||||
if (!preg_match('/^\d+x\d+$/', $viewport)) {
|
||||
header('HTTP/1.0 400 Bad Request');
|
||||
echo 'Invalid viewport format. Use WIDTHxHEIGHT (e.g., 1024x768)';
|
||||
exit;
|
||||
}
|
||||
$js = $_REQUEST['js'] == 'false' ? false : true;
|
||||
|
||||
$serverUrl = 'http://localhost:4444';
|
||||
|
Loading…
x
Reference in New Issue
Block a user