Skip to content

Commit

Permalink
This commit is a merge from trunk -> branch-3.0.x:
Browse files Browse the repository at this point in the history
   svn merge -r 894:895 https://ganglia.svn.sourceforge.net/svnroot/ganglia/trunk/monitor-core .

Original commit message:
this is just a quick patch to prevent cross-scripting on the range
GET variable.  we still need to review our other template variables as well.
  • Loading branch information
bernardli committed Dec 6, 2007
1 parent 456ad6f commit b84bae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/get_context.php
Expand Up @@ -11,7 +11,7 @@
escapeshellcmd(rawurldecode($_GET["G"])) : NULL;
$hostname = isset($_GET["h"]) ?
escapeshellcmd(rawurldecode($_GET["h"])) : NULL;
$range = isset($_GET["r"]) ?
$range = in_array($_GET["r"],array("hour","day","week","month","year")) ?
escapeshellcmd(rawurldecode($_GET["r"])) : NULL;
$metricname = isset($_GET["m"]) ?
escapeshellcmd(rawurldecode($_GET["m"])) : NULL;
Expand Down

0 comments on commit b84bae0

Please sign in to comment.