Files
librenms-librenms/includes/html/vars.inc.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
334 B
PHP
Raw Normal View History

2015-04-16 10:08:19 +00:00
<?php
$vars = \LibreNMS\Util\Url::parseLegacyPathVars($_SERVER['REQUEST_URI'] ?? null);
2015-04-16 10:08:19 +00:00
foreach ($_GET as $name => $value) {
$vars[$name] = strip_tags($value);
2015-04-16 10:08:19 +00:00
}
foreach ($_POST as $name => $value) {
$vars[$name] = $value;
2015-04-16 10:08:19 +00:00
}
// don't leak login and other data
unset($vars['username'], $vars['password'], $vars['_token']);