add isset($_REQUEST['debug']) before testing value for true (#6486)

Co-authored-by: Tim Fry <tim@voipstratus.com>
This commit is contained in:
frytimo 2022-10-19 13:49:31 -04:00 committed by GitHub
parent 2816a54a8f
commit 2bdf0d382e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class auto_loader {
$class_name = preg_replace('[^a-zA-Z0-9_]', '', $class_name); $class_name = preg_replace('[^a-zA-Z0-9_]', '', $class_name);
//save the log to the syslog server //save the log to the syslog server
if ($_REQUEST['debug'] == 'true') { if (isset($_REQUEST['debug']) && $_REQUEST['debug'] == 'true') {
openlog("PHP", LOG_PID | LOG_PERROR, LOG_LOCAL0); openlog("PHP", LOG_PID | LOG_PERROR, LOG_LOCAL0);
} }
@ -92,7 +92,7 @@ class auto_loader {
} }
//save the log to the syslog server //save the log to the syslog server
if ($_REQUEST['debug'] == 'true') { if (isset($_REQUEST['debug']) && $_REQUEST['debug'] == 'true') {
closelog(); closelog();
} }
} }