2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

HttpUtils.pm: strip only " from charset (Forum #138273)

git-svn-id: https://svn.fhem.de/fhem/trunk@28894 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2024-05-21 09:00:43 +00:00
parent 1ca3413fe0
commit bd3164672b

View File

@ -1059,7 +1059,7 @@ HttpUtils_ParseAnswer($)
$hash->{httpheader} =~ m/^Content-Type.*charset=(\S*)/im ? $1 :
'UTF-8';
if($unicodeEncoding && $encoding) {
$encoding =~ s/["']//g; #138273
$encoding =~ s/"//g; #138273
eval { $ret = Encode::decode($encoding, $ret) };
return $@ if($@);
}