mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 19:04:20 +00:00
01_FHEMWEB.pm: dont strip \r for png uploads
git-svn-id: https://svn.fhem.de/fhem/trunk@9033 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
69454ae111
commit
08256c4559
@ -1847,7 +1847,7 @@ FW_style($$)
|
||||
$fileName =~ s,.*/,,g; # Little bit of security
|
||||
my $filePath = FW_fileNameToPath($fileName);
|
||||
|
||||
$FW_data =~ s/\r//g;
|
||||
$FW_data =~ s/\r//g if($fileName !~ m,\.png$,);
|
||||
my $err = FileWrite({FileName=>$filePath, ForceType=>$forceType},
|
||||
split("\n", $FW_data));
|
||||
if($err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user