fix merl's shit

git-svn-id: http://www.observium.org/svn/observer/trunk@2365 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-26 14:38:16 +00:00
parent a3b963cae9
commit f577dc0cfd

View File

@@ -39,6 +39,8 @@ $id = mres($_GET['id']);
if (!$config['allow_unauth_graphs'])
{
if (!$_SESSION['authenticated']) { graph_error("Session not authenticated"); exit; }
} else {
$auth = TRUE; ## hardcode auth for all
}
preg_match('/^(?P<type>[A-Za-z0-9]+)_(?P<subtype>.+)/', mres($_GET['type']), $graphtype);