From 8858a05b23df2769f6e03c5b0fd7647840799fff Mon Sep 17 00:00:00 2001
From: =?utf8?q?Sven=20Sch=C3=B6ling?=
}g;
$new_content =~ s{\n}{
}g;
diff --git a/sql/Pg-upgrade2/oe_ar_ap_delivery_orders_edit_notes_as_html.pl b/sql/Pg-upgrade2/oe_ar_ap_delivery_orders_edit_notes_as_html.pl
index 2be82f172..a5575f6d2 100644
--- a/sql/Pg-upgrade2/oe_ar_ap_delivery_orders_edit_notes_as_html.pl
+++ b/sql/Pg-upgrade2/oe_ar_ap_delivery_orders_edit_notes_as_html.pl
@@ -7,6 +7,7 @@ use strict;
use utf8;
use SL::DBUtils;
+use SL::Presenter::EscapedText qw(escape);
use parent qw(SL::DBUpgrade2::Base);
@@ -18,7 +19,7 @@ sub convert_column {
foreach my $row (selectall_hashref_query($::form, $self->dbh, qq|SELECT id, $column FROM $table WHERE $column IS NOT NULL|)) {
next if !$row->{$column} || (($row->{$column} =~ m{^<[a-z]+>}) && ($row->{$column} =~ m{[a-z]+>$}));
- my $new_content = "" . $::request->presenter->escape($row->{$column});
+ my $new_content = "" . escape($row->{$column});
$new_content =~ s{\r}{}g;
$new_content =~ s{\n\n+}{
}g;
$new_content =~ s{\n}{
}g;
--
2.20.1