Skip to content

Commit

Permalink
Merge pull request #2381 from sammeboy635/script
Browse files Browse the repository at this point in the history
Ability to pass current %TEST_ID% into custom scripts
  • Loading branch information
stoyan committed Sep 27, 2022
2 parents 0d07b8d + 783dc1d commit be615b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/runtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit be615b5

Please sign in to comment.