From 11cb2fee598f4ca9eef8259881666b9a2770378a Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 3 Apr 2024 16:13:38 +0000 Subject: [PATCH] Bug 36244: (follow-up) Remove atomicupdate Something went wrong on creating the DBRev. Cleaning up. Signed-off-by: Katrin Fischer --- .../data/mysql/atomicupdate/bug_36244.pl | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug_36244.pl diff --git a/installer/data/mysql/atomicupdate/bug_36244.pl b/installer/data/mysql/atomicupdate/bug_36244.pl deleted file mode 100755 index 5fd40ecb2d..0000000000 --- a/installer/data/mysql/atomicupdate/bug_36244.pl +++ /dev/null @@ -1,27 +0,0 @@ -use Modern::Perl; - -return { - bug_number => "36244", - description => "Template Toolkit syntax not escaped in letter templates", - up => sub { - my ($args) = @_; - my ( $dbh, $out ) = @$args{qw(dbh out)}; - - my $query = q{SELECT * FROM letter WHERE content LIKE "[|%%SET%<<%|%]" ESCAPE '|'}; - my $sth = $dbh->prepare($query); - $sth->execute(); - if ( $sth->rows ) { - say $out "You have one or more templates that have been affected by bug 36244."; - say $out "These templates assign template toolkit variables values"; - say $out "using the double arrows syntax. E.g. [% SET name = '<>' %]"; - say $out - "This will no longer function correctly as Template Toolkit is now rendered before the double arrow syntax."; - say $out "The following notices will need to be updated:"; - - while ( my $row = $sth->fetchrow_hashref() ) { - say $out - "ID: $row->{id} / MODULE: $row->{module} / CODE: $row->{code} / BRANCHCODE: $row->{branchcode} / NAME: $row->{name}"; - } - } - }, -}; -- 2.39.5