From 783dc1d7f9a454780eeba558fdd4711f75751ee6 Mon Sep 17 00:00:00 2001 From: sammeboy635 Date: Tue, 27 Sep 2022 12:42:01 -0600 Subject: [PATCH] Ability to pass current %TEST_ID% into custom scripts --- www/runtest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/runtest.php b/www/runtest.php index 9a95405e30..f587a61a2d 100644 --- a/www/runtest.php +++ b/www/runtest.php @@ -3459,7 +3459,7 @@ function ProcessTestScript($url, &$test) $origin .= ':' . $parts['port']; } $script = str_ireplace('%ORIGIN%', $origin, $script); - + $script = str_ireplace('%TEST_ID%', $test['id'], $script); $script = str_ireplace('%HOST_REGEX%', str_replace('.', '\\.', $host), $script); if (stripos($script, '%HOSTR%') !== false) { if (GetRedirect($url, $rhost, $rurl)) {