aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/templates
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-01 09:37:12 +0200
committerJoas Schilling <coding@schilljs.com>2016-08-01 09:37:12 +0200
commit13c19e5286cf6e5cdb63044bcda264bc7f453595 (patch)
tree899d7d7c713db10b8cba68b275523d9d6a414d26 /apps/theming/templates
parent50c8367041152ddd574ea283f0a9f08c192a646a (diff)
downloadnextcloud-server-13c19e5286cf6e5cdb63044bcda264bc7f453595.tar.gz
nextcloud-server-13c19e5286cf6e5cdb63044bcda264bc7f453595.zip
Validate the input of the theming options
Diffstat (limited to 'apps/theming/templates')
-rw-r--r--apps/theming/templates/settings-admin.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/theming/templates/settings-admin.php b/apps/theming/templates/settings-admin.php
index 811b2883a88..50c4a8fb5ec 100644
--- a/apps/theming/templates/settings-admin.php
+++ b/apps/theming/templates/settings-admin.php
@@ -36,25 +36,25 @@ style('theming', 'settings-admin');
<?php } else { ?>
<p>
<label><span><?php p($l->t('Name')) ?></span>
- <input id="theming-name" type="text" placeholder="<?php p($l->t('Name')); ?>" value="<?php p($_['name']) ?>" />
+ <input id="theming-name" type="text" placeholder="<?php p($l->t('Name')); ?>" value="<?php p($_['name']) ?>" maxlength="250" />
</label>
<span data-setting="name" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
</p>
<p>
<label><span><?php p($l->t('Web address')) ?></span>
- <input id="theming-url" type="text" placeholder="<?php p($l->t('Web address https://…')); ?>" value="<?php p($_['url']) ?>" />
+ <input id="theming-url" type="text" placeholder="<?php p($l->t('Web address https://…')); ?>" value="<?php p($_['url']) ?>" maxlength="500" />
</label>
<span data-setting="url" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
</p>
<p>
<label><span><?php p($l->t('Slogan')) ?></span>
- <input id="theming-slogan" type="text" placeholder="<?php p($l->t('Slogan')); ?>" value="<?php p($_['slogan']) ?>" />
+ <input id="theming-slogan" type="text" placeholder="<?php p($l->t('Slogan')); ?>" value="<?php p($_['slogan']) ?>" maxlength="500" />
</label>
<span data-setting="slogan" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
</p>
<p>
<label><span><?php p($l->t('Color')) ?></span>
- <input id="theming-color" type="text" class="jscolor" value="<?php p($_['color']) ?>" />
+ <input id="theming-color" type="text" class="jscolor" maxlength="6" value="<?php p($_['color']) ?>" />
</label>
<span data-setting="color" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
</p>