70_Pushover.pm: fix after HttpUtils.pm change (Forum #133265)

git-svn-id: https://svn.fhem.de/fhem/trunk@27466 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2023-04-20 07:51:19 +00:00
parent 06caf3ce00
commit d02d0f10f3

View File

@@ -1476,10 +1476,10 @@ sub Pushover_HttpUri ($$;$) {
# replace any URL-encoded \n with their hex equivalent
# but ignore \\n
$v =~ s/(?<!%5c)(%5cn)/%0a/g;
$v =~ s/(?<!%5c)(%5cn)/%0a/gi;
# replace any URL-encoded \\n by \n
$v =~ s/%5c%5cn/%5cn/g;
$v =~ s/%5c%5cn/%5cn/gi;
$uri .= "&" if ($uri);
$uri .= "$n=$v";