From 1e29a01241e8208ca6f79def075a5c33fe14b071 Mon Sep 17 00:00:00 2001 From: Dan LaManna Date: Thu, 13 Aug 2026 11:34:06 -0400 Subject: [PATCH] Parameterize build name query --- app/cdash/app/Model/BuildGroup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cdash/app/Model/BuildGroup.php b/app/cdash/app/Model/BuildGroup.php index 9ab4e28455..f31cf05882 100644 --- a/app/cdash/app/Model/BuildGroup.php +++ b/app/cdash/app/Model/BuildGroup.php @@ -427,7 +427,7 @@ public function GetGroupIdFromRule(Build $build): int ->where('buildgroup.projectid', '=', $build->ProjectId) ->where('build2grouprule.buildtype', '=', $build->Type) ->where('build2grouprule.siteid', '=', -1) - ->whereRaw("'{$build->Name}' LIKE build2grouprule.buildname") + ->whereRaw('? LIKE build2grouprule.buildname', [$build->Name]) ->where('build2grouprule.starttime', '<', $build->StartTime) ->where(function ($query) use ($starttime): void { $query->where('build2grouprule.endtime', '=', '1980-01-01 00:00:00')