From 4ebdea019066887264108a222bdf8f56281f33e9 Mon Sep 17 00:00:00 2001 From: Patrick Meenan Date: Tue, 7 May 2024 18:17:04 +0000 Subject: [PATCH] Added support for wappalyzerPR --- www/runtest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/www/runtest.php b/www/runtest.php index d0e589fa6b..89217396c7 100644 --- a/www/runtest.php +++ b/www/runtest.php @@ -444,6 +444,12 @@ if (array_key_exists('tester', $_REQUEST) && preg_match('/[a-zA-Z0-9\-_]+/', $_REQUEST['tester'])) { $test['affinity'] = 'Tester' . $_REQUEST['tester']; } + if (isset($_REQUEST['wappalyzerPR'])) { + $pr = intval($_REQUEST['wappalyzerPR']); + if ($pr) { + $test['wappalyzerPR'] = $pr; + } + } // custom options $test['cmdLine'] = ''; @@ -2916,6 +2922,9 @@ function CreateTest(&$test, $url, $batch = 0, $batch_locations = 0) if (isset($test['axe']) && $test['axe']) { $job['axe'] = 1; } + if (isset($test['wappalyzerPR'])) { + $job['wappalyzerPR'] = $test['wappalyzerPR']; + } if (isset($test['mobile']) && $test['mobile']) { $job['mobile'] = 1; } @@ -3033,6 +3042,9 @@ function CreateTest(&$test, $url, $batch = 0, $batch_locations = 0) if (isset($test['axe']) && $test['axe']) { $job['axe'] = 1; } + if (isset($test['wappalyzerPR'])) { + $job['wappalyzerPR'] = $test['wappalyzerPR']; + } // Pass the WPT server hostname to the agent $hostname = GetSetting('host'); if (isset($hostname) && is_string($hostname) && strlen($hostname)) {