Restrict the maximum length of menu items
authorAlexander Ebert <ebert@woltlab.com>
Mon, 22 Feb 2021 23:01:26 +0000 (00:01 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 22 Feb 2021 23:01:26 +0000 (00:01 +0100)
wcfsetup/install/files/acp/templates/menuItemAdd.tpl

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