From 47049c317f5d2a79de4ce5fa50b010467243a037 Mon Sep 17 00:00:00 2001
From: Malf Furious <m@lfurio.us>
Date: Fri, 9 Feb 2018 00:40:30 -0500
Subject: Limit app textbox input to 64 chars

Many database string fields are capped at 64 chars.  Am now asserting
this limit in the UI.
---
 app/view/formctrl.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'app/view')

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 } ?>
-- 
cgit v1.2.3