mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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:
parent
1ca3413fe0
commit
bd3164672b
@ -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($@);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user