summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-04-14 13:39:41 +0200
committerMichael Tänzer <neo@nhng.de>2014-04-14 13:39:41 +0200
commit4f555bd41ae6340c21f199512090e1e47d08fa3a (patch)
tree39363975044bdc9af9a5b4b440e9bebe3a6d7a3f
parentaf2b4270321945763187143c1629c871715829e1 (diff)
downloadcacert-devel-4f555bd41ae6340c21f199512090e1e47d08fa3a.tar.gz
cacert-devel-4f555bd41ae6340c21f199512090e1e47d08fa3a.tar.xz
cacert-devel-4f555bd41ae6340c21f199512090e1e47d08fa3a.zip
bug 1138: Require number suffix for valid ticket numbers
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--includes/notary.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/notary.inc.php b/includes/notary.inc.php
index 5474edb..01e90a6 100644
--- a/includes/notary.inc.php
+++ b/includes/notary.inc.php
@@ -1274,7 +1274,7 @@ function valid_ticket_number($ticketno){
//d dispute action
//s support case
//m board motion
- $pattern='/[adsmADSM]\d{8}\./';
+ $pattern='/[adsmADSM]\d{8}\.\d+/';
if (preg_match($pattern, $ticketno)) {
return true;
}