Limit the maximum length of the option name
authorAlexander Ebert <ebert@woltlab.com>
Sun, 10 Sep 2023 12:59:18 +0000 (14:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 10 Sep 2023 12:59:18 +0000 (14:59 +0200)
See https://www.woltlab.com/community/thread/301557-fatal-error-zu-viele-zeichen-im-kontaktformular-im-feld-name/

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

index 45a29ac169ec3ad588305d01dc1aed55f9f0ac9c..f75dcf66a9700653e6a3493900a4d03ecbd4e04a 100644 (file)
@@ -21,7 +21,7 @@
        <dl{if $errorField == 'optionTitle'} class="formError"{/if}>
                <dt><label for="optionTitle">{lang}wcf.global.name{/lang}</label></dt>
                <dd>
-                       <input type="text" id="optionTitle" name="optionTitle" value="{$i18nPlainValues['optionTitle']}" required autofocus class="long">
+                       <input type="text" id="optionTitle" name="optionTitle" value="{$i18nPlainValues['optionTitle']}" required autofocus maxlength="255" class="long">
                        {if $errorField == 'optionTitle'}
                                <small class="innerError">
                                        {if $errorType == 'multilingual'}