diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/DTS/Validator.php | 2 | ||||
| -rw-r--r-- | src/templates/form_fields.php | 2 |
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 } ?> |
