summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-06-21 23:58:45 +0200
committerMichael Tänzer <neo@nhng.de>2014-06-21 23:58:45 +0200
commitb6a4c69f26fcdbefeeef6922a80b842e28610741 (patch)
treeb4f3884c2b41c914072a51aa0ec8080f8ba16c35 /www
parent7fbd25520ae6d4920453961728b115d8a974eb97 (diff)
downloadcacert-devel-b6a4c69f26fcdbefeeef6922a80b842e28610741.tar.gz
cacert-devel-b6a4c69f26fcdbefeeef6922a80b842e28610741.tar.xz
cacert-devel-b6a4c69f26fcdbefeeef6922a80b842e28610741.zip
bug 1226: Properly use sprintf
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'www')
-rw-r--r--www/wot.php2
1 files changed, 1 insertions, 1 deletions
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."));