Skip to content

Commit 61e38e8

Browse files
committed
Preserve the filename when stripping EXIF data
1 parent caf7cdc commit 61e38e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wcfsetup/install/files/lib/system/file/processor/FileProcessor.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public function stripExif(File $file): File
455455
return $file;
456456
}
457457

458-
$command = new ReplaceFileSource($file, $fileWithoutExif);
458+
$command = new ReplaceFileSource($file, $fileWithoutExif, $file->filename);
459459
$newFile = $command();
460460

461461
return $newFile;

0 commit comments

Comments
 (0)