summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2021-11-12 20:50:36 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2021-11-12 20:50:36 +0000
commitb8ee7f12aba7a81fa0ffbc5cae68e576a2a2372b (patch)
tree81d717716d1b4c68fc9e112a80056bc6b0596905
parentcb303f1d018af9fe10f05b271d9d792ab8720a4d (diff)
Increase max length of tag
-rw-r--r--src/DTS/Validator.php2
-rw-r--r--src/templates/form_fields.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/DTS/Validator.php b/src/DTS/Validator.php
index 081aae8..a688832 100644
--- a/src/DTS/Validator.php
+++ b/src/DTS/Validator.php
@@ -23,7 +23,7 @@ class Validator
$this->validateTitle($request['title'], 2, 256);
- $this->validateTag($request['tag'], 2, 8);
+ $this->validateTag($request['tag'], 2, 16);
}
private function validateUrl(string $url, int $minLength, int $maxLength): void
diff --git a/src/templates/form_fields.php b/src/templates/form_fields.php
index 224dbf4..5024c02 100644
--- a/src/templates/form_fields.php
+++ b/src/templates/form_fields.php
@@ -6,7 +6,7 @@
<?php if ($errors->has('title')) { ?>
<p><?= htmlentities(implode(', ', $errors->get('title'))); ?></p>
<?php } ?>
-<label>Tag<input type="text" name="tag" maxlength="8" value="<?= htmlspecialchars($old->get('tag', $bookmark->tag)); ?>"></label>
+<label>Tag<input type="text" name="tag" maxlength="16" value="<?= htmlspecialchars($old->get('tag', $bookmark->tag)); ?>"></label>
<?php if ($errors->has('tag')) { ?>
<p><?= htmlentities(implode(', ', $errors->get('tag'))); ?></p>
<?php } ?>