Allow svg for page logos
authorMarcel Werk <burntime@woltlab.com>
Sun, 11 Dec 2016 09:44:22 +0000 (10:44 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 11 Dec 2016 09:44:22 +0000 (10:44 +0100)
wcfsetup/install/files/lib/data/style/StyleAction.class.php

index c495b8c0f57e3c6f53698b1e92cba649e4274ae3..1bcbdb1cd93c385e735d69e807373dfabc00721b 100644 (file)
@@ -275,7 +275,7 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction,
                }
                
                // check max filesize, allowed file extensions etc.
-               $uploadHandler->validateFiles(new DefaultUploadFileValidationStrategy(PHP_INT_MAX, ['jpg', 'jpeg', 'png', 'gif']));
+               $uploadHandler->validateFiles(new DefaultUploadFileValidationStrategy(PHP_INT_MAX, ['jpg', 'jpeg', 'png', 'gif', 'svg']));
        }
        
        /**