Permalink
Browse files

Merge pull request #20 from robocoder/patch-1

filter 'run' parameter
  • Loading branch information...
2 parents 254eb24 + a29189d commit 62638e0b4126823dbf3f02deb6e68753a4f0f7e6 @scottmac scottmac committed Jul 19, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 xhprof_lib/utils/xhprof_lib.php
@@ -905,6 +905,10 @@ function xhprof_param_init($params) {
exit();
}
+ if ($k === 'run') {
+ $p = implode(',', array_filter(explode(',', $p), 'is_numeric'));
+ }
+
// create a global variable using the parameter name.
$GLOBALS[$k] = $p;
}

0 comments on commit 62638e0

Please sign in to comment.