accept .gz, .tar and .tgz only for package installation/upload
authormutec <mutec@users.noreply.github.com>
Wed, 23 Jan 2019 13:44:23 +0000 (14:44 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Jan 2019 13:44:23 +0000 (14:44 +0100)
Prevent new user's from selecting the zip file containing the first-installation-tool

wcfsetup/install/files/acp/templates/packageStartInstall.tpl

index 72ce6dbd024ad82e994dc44d7f91814f46f2f779..f1dd8451c8c4bc163bcf2364da015b533aed02dd 100644 (file)
@@ -80,7 +80,7 @@
                                <dl{if $errorField == 'uploadPackage'} class="formError"{/if}>
                                        <dt><label for="uploadPackage">{lang}wcf.acp.package.source.upload{/lang}</label></dt>
                                        <dd>
-                                               <input type="file" id="uploadPackage" name="uploadPackage" value="">
+                                               <input type="file" id="uploadPackage" name="uploadPackage" value="" accept="application/x-tar,application/gzip,application/tar+gzip">
                                                {if $errorField == 'uploadPackage'}
                                                        <small class="innerError">
                                                                {if $errorType == 'empty'}