From b6a4c69f26fcdbefeeef6922a80b842e28610741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=A4nzer?= Date: Sat, 21 Jun 2014 23:58:45 +0200 Subject: bug 1226: Properly use sprintf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Tänzer --- www/wot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/wot.php b/www/wot.php index 40a60a6..e7a0f0d 100644 --- a/www/wot.php +++ b/www/wot.php @@ -202,7 +202,7 @@ function send_reminder() $_SESSION['assuresomeone']['year'] = intval($_POST['year']); $_SESSION['assuresomeone']['month'] = intval($_POST['month']); $_SESSION['assuresomeone']['day'] = intval($_POST['day']); - $dob = $_SESSION['assuresomeone']['year'] . '-' . sprintf('%02d',$_SESSION['assuresomeone']['month']) . '-' . sprintf('%02d', $_SESSION['assuresomeone']['day']); + $dob = sprintf('%04d-%02d-%02d', $_SESSION['assuresomeone']['year'], $_SESSION['assuresomeone']['month'], $_SESSION['assuresomeone']['day']); if ( $_SESSION['_config']['notarise']['dob'] != $dob) { show_page("EnterEmail","",_("The data entered is not matching with an account.")); -- cgit v1.2.1