aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/html.inc.php
diff options
context:
space:
mode:
authorPim van den Berg2015-05-25 12:02:35 +0200
committerPim van den Berg2015-05-25 12:11:31 +0200
commita213f092ab2abc7d0033044b074a327f28287507 (patch)
treeaff9cbcc286291d71f05a3bebbaf1b34b6c35c72 /inc/html.inc.php
parentinc/functions: make type argument of validate_get function exactly the same a... (diff)
downloadapt-panopticon_cgp-a213f092ab2abc7d0033044b074a327f28287507.zip
apt-panopticon_cgp-a213f092ab2abc7d0033044b074a327f28287507.tar.gz
apt-panopticon_cgp-a213f092ab2abc7d0033044b074a327f28287507.tar.bz2
apt-panopticon_cgp-a213f092ab2abc7d0033044b074a327f28287507.tar.xz
inc/functions: merge functions GET and validate_get
And make sure all input from $_GET variables are parsed and validated.
Diffstat (limited to '')
-rw-r--r--inc/html.inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php
index 3998f54..98081ce 100644
--- a/inc/html.inc.php
+++ b/inc/html.inc.php
@@ -313,15 +313,15 @@ function host_summary($cat, $hosts) {
313 313
314function breadcrumbs() { 314function breadcrumbs() {
315 $path = ''; 315 $path = '';
316 if (validate_get(GET('h'), 'h')) 316 if (GET('h'))
317 $path .= ' - '.ucfirst(GET('h')); 317 $path .= ' - '.ucfirst(GET('h'));
318 if (validate_get(GET('p'), 'p')) 318 if (GET('p'))
319 $path .= ' - '.ucfirst(GET('p')); 319 $path .= ' - '.ucfirst(GET('p'));
320 if (validate_get(GET('pi'), 'pi')) 320 if (GET('pi'))
321 $path .= ' - '.GET('pi'); 321 $path .= ' - '.GET('pi');
322 if (validate_get(GET('t'), 't') && validate_get(GET('p'), 'p') && GET('t') != GET('p')) 322 if (GET('t') && GET('p') && GET('t') != GET('p'))
323 $path .= ' - '.GET('t'); 323 $path .= ' - '.GET('t');
324 if (validate_get(GET('ti'), 'ti')) 324 if (GET('ti'))
325 $path .= ' - '.GET('ti'); 325 $path .= ' - '.GET('ti');
326 326
327 return $path; 327 return $path;