summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-02-09 00:40:30 -0500
committerMalf Furious <m@lfurio.us>2018-02-09 00:40:30 -0500
commit47049c317f5d2a79de4ce5fa50b010467243a037 (patch)
tree77f74f3b4ba36cf140e1a05f575ffd11191ad041 /app
parent6dd131780490eb6ab13a4fccff134fe3c409d215 (diff)
downloadscrott-47049c317f5d2a79de4ce5fa50b010467243a037.tar.gz
scrott-47049c317f5d2a79de4ce5fa50b010467243a037.zip
Limit app textbox input to 64 chars
Many database string fields are capped at 64 chars. Am now asserting this limit in the UI.
Diffstat (limited to 'app')
-rw-r--r--app/view/formctrl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/view/formctrl.php b/app/view/formctrl.php
index 3683eb4..b8643b0 100644
--- a/app/view/formctrl.php
+++ b/app/view/formctrl.php
@@ -25,7 +25,7 @@ namespace formctrl;
<div class="form-group">
<label><?=$label?></label>
- <input type="text" name="input[<?=$name?>]" value="<?=$value?>" placeholder="<?=$placeholder?>" class="form-control" <?=($required ? "required" : "")?> <?=($disabled ? "disabled" : "")?> />
+ <input type="text" name="input[<?=$name?>]" value="<?=$value?>" placeholder="<?=$placeholder?>" class="form-control" <?=($required ? "required" : "")?> <?=($disabled ? "disabled" : "")?> maxlength="64" />
</div>
<?php } ?>