bug 1138: Require number suffix for valid ticket numbers
authorMichael Tänzer <neo@nhng.de>
Mon, 14 Apr 2014 11:39:41 +0000 (13:39 +0200)
committerMichael Tänzer <neo@nhng.de>
Mon, 14 Apr 2014 11:39:41 +0000 (13:39 +0200)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/notary.inc.php

index 5474edb..01e90a6 100644 (file)
@@ -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;
        }