From 27fb1f05204c4c306db8dab3984b0720f060a142 Mon Sep 17 00:00:00 2001
From: Anthon Pang <apang@softwaredevelopment.ca>
Date: Mon, 22 Jul 2013 18:33:44 -0400
Subject: [PATCH] updated fix to also accept randomly generated run IDs

---
 tests/lib/xhprof-0.9.2/xhprof_lib/utils/xhprof_lib.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/lib/xhprof-0.9.2/xhprof_lib/utils/xhprof_lib.php b/tests/lib/xhprof-0.9.2/xhprof_lib/utils/xhprof_lib.php
index 12935dffd8..ad4f889521 100755
--- a/tests/lib/xhprof-0.9.2/xhprof_lib/utils/xhprof_lib.php
+++ b/tests/lib/xhprof-0.9.2/xhprof_lib/utils/xhprof_lib.php
@@ -905,6 +905,12 @@ function xhprof_param_init($params) {
       exit();
     }
 
+    if ($k === 'run') {
+      $p = implode(',', array_filter(explode(',', $p), function ($a) {
+          return is_numeric($a) || is_numeric(base_convert($a, 16, 10));
+      }));
+    }
+
     // create a global variable using the parameter name.
     $GLOBALS[$k] = $p;
   }
-- 
GitLab