Only allow A-Za-z- for Ticket Prefix

This commit is contained in:
johnnyq
2024-01-20 16:45:39 -05:00
parent 31d6605647
commit d3aa2e7239
2 changed files with 3 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ require_once "inc_all_settings.php";
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-life-ring"></i></span>
</div>
<input type="text" class="form-control" name="config_ticket_prefix" placeholder="Ticket Prefix" value="<?php echo nullable_htmlentities($config_ticket_prefix); ?>">
<input type="text" class="form-control" name="config_ticket_prefix" placeholder="Ticket Prefix" value="<?php echo nullable_htmlentities($config_ticket_prefix); ?>" pattern="^[A-Za-z-]+$" title="Only letters and hyphens are allowed" required>
</div>
</div>