From c6a45f7024c1addd2cf7b7bbf51977d19834be3a Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Wed, 28 Jan 2026 15:17:46 -0800 Subject: [PATCH] Fix CFML hash escaping in brand color migration script Co-Authored-By: Claude Opus 4.5 --- api/admin/fixBrandColors.cfm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/admin/fixBrandColors.cfm b/api/admin/fixBrandColors.cfm index 89d627b..2c47cb5 100644 --- a/api/admin/fixBrandColors.cfm +++ b/api/admin/fixBrandColors.cfm @@ -6,14 +6,14 @@ qBefore = queryExecute(" SELECT BusinessID, BusinessBrandColor FROM Businesses WHERE BusinessBrandColor LIKE :pattern -", { pattern: { value: "#%", cfsqltype: "cf_sql_varchar" } }, { datasource: "payfrit" }); +", { pattern: { value: "##%", cfsqltype: "cf_sql_varchar" } }, { datasource: "payfrit" }); if (qBefore.recordCount > 0) { queryExecute(" UPDATE Businesses SET BusinessBrandColor = SUBSTRING(BusinessBrandColor, 2) WHERE BusinessBrandColor LIKE :pattern - ", { pattern: { value: "#%", cfsqltype: "cf_sql_varchar" } }, { datasource: "payfrit" }); + ", { pattern: { value: "##%", cfsqltype: "cf_sql_varchar" } }, { datasource: "payfrit" }); } qAfter = queryExecute("