From da9b48cbcd928aa0eff63163dcb7b38f29ae84a6 Mon Sep 17 00:00:00 2001 From: Anthon Pang Date: Mon, 22 Jul 2013 09:57:08 -0400 Subject: [PATCH] fixes PR #20 when using randomly generated run ids (better patch by @slava-vishnyakov) --- xhprof_lib/utils/xhprof_lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xhprof_lib/utils/xhprof_lib.php b/xhprof_lib/utils/xhprof_lib.php index 53119f51..ff4cda8a 100644 --- a/xhprof_lib/utils/xhprof_lib.php +++ b/xhprof_lib/utils/xhprof_lib.php @@ -906,7 +906,7 @@ function xhprof_param_init($params) { } if ($k === 'run') { - $p = implode(',', array_filter(explode(',', $p), 'is_numeric')); + $p = implode(',', array_filter(explode(',', $p), 'ctype_xdigit')); } // create a global variable using the parameter name.