mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 12:54:51 +00:00
Only allow A-Za-z- for Ticket Prefix
This commit is contained in:
@@ -255,7 +255,7 @@ function addReply($from_email, $date, $subject, $ticket_number, $message, $attac
|
|||||||
|
|
||||||
addToMailQueue($mysqli, $data);
|
addToMailQueue($mysqli, $data);
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check WHO replied (was it the owner of the ticket or someone else on CC?)
|
// Check WHO replied (was it the owner of the ticket or someone else on CC?)
|
||||||
@@ -517,6 +517,7 @@ if ($emails) {
|
|||||||
imap_setflag_full($imap, $email, "\\Seen");
|
imap_setflag_full($imap, $email, "\\Seen");
|
||||||
imap_mail_move($imap, $email, $imap_folder);
|
imap_mail_move($imap, $email, $imap_folder);
|
||||||
} else {
|
} else {
|
||||||
|
// Basically just flags all emails keep them unread and it doesnt move closed tickets
|
||||||
echo "Failed to process email - flagging for manual review.";
|
echo "Failed to process email - flagging for manual review.";
|
||||||
imap_setflag_full($imap, $email, "\\Flagged");
|
imap_setflag_full($imap, $email, "\\Flagged");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ require_once "inc_all_settings.php";
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-life-ring"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-life-ring"></i></span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user