Skip to content

Commit 87ed949

Browse files
committed
Preserve the filename when stripping EXIF data
1 parent 0e549ff commit 87ed949

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)