Add cache buster for pageLogo
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 3 Aug 2020 10:35:57 +0000 (12:35 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 3 Aug 2020 10:35:57 +0000 (12:35 +0200)
wcfsetup/install/files/lib/data/style/StyleAction.class.php

index a78e4e2cee78372761e722d3f0c2171c2951a75d..ec0878bdd84fab240a3d3c0543cb096fde8fa610 100644 (file)
@@ -187,7 +187,7 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction
                                if ($file !== null) {
                                        $fileLocation = $file->getLocation();
                                        $extension = pathinfo($file->getFilename(), PATHINFO_EXTENSION);
-                                       $newName = $type.'.'.$extension;
+                                       $newName = $type.'-'.\bin2hex(\random_bytes(4)).'.'.$extension;
                                        $newLocation = $style->getAssetPath().$newName;
                                        rename($fileLocation, $newLocation);
                                        $this->parameters['variables'][$type] = $newName;