bug 1138: added ticketnumber check
authorINOPIAE <inopiae@cacert.org>
Sun, 8 Dec 2013 17:53:39 +0000 (18:53 +0100)
committerINOPIAE <inopiae@cacert.org>
Sun, 8 Dec 2013 17:53:39 +0000 (18:53 +0100)
includes/account.php

index a579b7a..1aa2b9c 100644 (file)
                $oldid=0;
        }
 
+       //check if ticket number was entered
+       if ( $oldid== 43) {
+               $ticketno=mysql_real_escape_string($_REQUEST['ticketno']);
+               $ticketvalidation=valid_ticket_number($ticketno);
+               $_SESSION['ticketno']=$ticketno;
+       }
+
        if($oldid == 43 && $_REQUEST['action'] == "updatedob" && $ticketvalidation==TRUE)
        {
                $id = 43;