Permalink
Browse files

fixes PR #20 when using randomly generated run ids (better patch by @…

  • Loading branch information...
1 parent 62638e0 commit da9b48cbcd928aa0eff63163dcb7b38f29ae84a6 @robocoder robocoder committed with robocoder Jul 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.

2 comments on commit da9b48c

This commit breaks if you pass iXHProfRuns::save_run() a simple string as third parameter.

Contributor

robocoder replied Aug 27, 2013

I can live with the restriction. I don't want to over-complicate it.

Please sign in to comment.