From 3cefa0da59b7fc5c27122331c7a1406e090a18df Mon Sep 17 00:00:00 2001 From: s3inlc Date: Wed, 17 Jun 2026 15:08:48 +0200 Subject: [PATCH 1/3] added migration to add backtick to postgres default blacklist characters if needed --- .../mysql/20260617130352_blacklist-chars-sync.sql | 1 + .../postgres/20260617130352_blacklist-chars-sync.sql | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 src/migrations/mysql/20260617130352_blacklist-chars-sync.sql create mode 100644 src/migrations/postgres/20260617130352_blacklist-chars-sync.sql diff --git a/src/migrations/mysql/20260617130352_blacklist-chars-sync.sql b/src/migrations/mysql/20260617130352_blacklist-chars-sync.sql new file mode 100644 index 000000000..d91c8d51b --- /dev/null +++ b/src/migrations/mysql/20260617130352_blacklist-chars-sync.sql @@ -0,0 +1 @@ +This migration is only a placeholder to keep migrations parallel \ No newline at end of file diff --git a/src/migrations/postgres/20260617130352_blacklist-chars-sync.sql b/src/migrations/postgres/20260617130352_blacklist-chars-sync.sql new file mode 100644 index 000000000..472658bbe --- /dev/null +++ b/src/migrations/postgres/20260617130352_blacklist-chars-sync.sql @@ -0,0 +1,6 @@ +-- the backtick as default blacklisted character got lost for postgres, so for the cases where people still have the default, we add it +UPDATE Config +SET value = '&|"'{}()[]$<>;`' +WHERE item = 'blacklistChars' + AND configSectionId=1 + AND value = '&|"'{}()[]$<>;'; \ No newline at end of file From a80b1e0bd9b7c176b84e68ff7dde7a6bf1784464 Mon Sep 17 00:00:00 2001 From: s3inlc Date: Wed, 17 Jun 2026 15:35:54 +0200 Subject: [PATCH 2/3] fixed unescaped character --- .../postgres/20260617130352_blacklist-chars-sync.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/migrations/postgres/20260617130352_blacklist-chars-sync.sql b/src/migrations/postgres/20260617130352_blacklist-chars-sync.sql index 472658bbe..f94cdad5c 100644 --- a/src/migrations/postgres/20260617130352_blacklist-chars-sync.sql +++ b/src/migrations/postgres/20260617130352_blacklist-chars-sync.sql @@ -1,6 +1,6 @@ -- the backtick as default blacklisted character got lost for postgres, so for the cases where people still have the default, we add it UPDATE Config -SET value = '&|"'{}()[]$<>;`' +SET value = '&|"''{}()[]$<>;`' WHERE item = 'blacklistChars' AND configSectionId=1 - AND value = '&|"'{}()[]$<>;'; \ No newline at end of file + AND value = '&|"''{}()[]$<>;'; \ No newline at end of file From 17cda1d32ec1831c88c47a61a8de3c00c92d3d14 Mon Sep 17 00:00:00 2001 From: s3inlc Date: Wed, 17 Jun 2026 15:47:11 +0200 Subject: [PATCH 3/3] forgot the comments prefix for placeholder --- src/migrations/mysql/20260617130352_blacklist-chars-sync.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migrations/mysql/20260617130352_blacklist-chars-sync.sql b/src/migrations/mysql/20260617130352_blacklist-chars-sync.sql index d91c8d51b..5b011d454 100644 --- a/src/migrations/mysql/20260617130352_blacklist-chars-sync.sql +++ b/src/migrations/mysql/20260617130352_blacklist-chars-sync.sql @@ -1 +1 @@ -This migration is only a placeholder to keep migrations parallel \ No newline at end of file +-- This migration is only a placeholder to keep migrations parallel \ No newline at end of file