mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: basic input validation for screen width and height (#7713)
This commit is contained in:
committed by
Tony Murray
parent
00fc5bf0e8
commit
3c94ce7da0
@@ -3,8 +3,10 @@
|
||||
session_start();
|
||||
|
||||
if (isset($_REQUEST['width'], $_REQUEST['height'])) {
|
||||
$_SESSION['screen_width'] = $_REQUEST['width'];
|
||||
$_SESSION['screen_height'] = $_REQUEST['height'];
|
||||
if (is_numeric($_REQUEST['height']) && is_numeric($_REQUEST['width'])) {
|
||||
$_SESSION['screen_width'] = $_REQUEST['width'];
|
||||
$_SESSION['screen_height'] = $_REQUEST['height'];
|
||||
}
|
||||
}
|
||||
|
||||
session_write_close();
|
||||
|
||||
Reference in New Issue
Block a user