From 35c87bac6c3896620a230c53ba8063aa9be097cf Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Sat, 9 Mar 2024 19:37:47 +0100 Subject: [PATCH] FIX: removed + in Project Name --- lib/Webhook2Ntfy/Controller/Webhook.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Webhook2Ntfy/Controller/Webhook.pm b/lib/Webhook2Ntfy/Controller/Webhook.pm index b0a213e..297fe7d 100644 --- a/lib/Webhook2Ntfy/Controller/Webhook.pm +++ b/lib/Webhook2Ntfy/Controller/Webhook.pm @@ -57,7 +57,10 @@ sub redmine2ntfy my $entityUrl=$4; my $entityName=$5; my $author=$6; + $author =~ s/\+/ /g; + $projectName=~ s/\+/ /g; + my $status; if ($entity eq "Issue") @@ -65,6 +68,8 @@ sub redmine2ntfy $entityName=~s/\+/ /g; } + + my $title = "$entity update for $projectName"; my $text = "There has been an $entity update for project [$projectName]($projectUrl) by $author on [$entityName]($entityUrl)";