Fixed ORIG_PATH_INFO being logged in error_log #727

merged 1 commit into from Apr 4, 2015


None yet

2 participants

laf commented Apr 3, 2015

This fixes:

PHP Notice: Undefined index: ORIG_PATH_INFO in /opt/librenms/html/index.php on line 15

When some browses to /index.php, this is because ORIG_PATH_INFO or PATH_INFO is not set as it's not in the URL. When something like /eventlog/ is used then one of them will be, this just adds another check for ORIG_PATH_INFO and if that's not set either then default to blank - at this stage something else is up if the user is browsing to /something/

Fixes issue #726

@f0o f0o merged commit 84b44d0 into librenms:master Apr 4, 2015

1 check passed

Scrutinizer No new issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment