From b2f8a5d29ed0d35b53e71efc11ff7db1ce4308ae Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Tue, 29 Jul 2014 23:29:14 +0200 Subject: bug 1291: Update wothash calculation for modified behaviour --- www/wot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www') diff --git a/www/wot.php b/www/wot.php index 89b0aac..e6d180c 100644 --- a/www/wot.php +++ b/www/wot.php @@ -324,7 +324,7 @@ function send_reminder() $query = "select * from `users` where `id`='".intval($_SESSION['_config']['notarise']['id'])."'"; $res = mysql_query($query); $row = mysql_fetch_assoc($res); - $name = $row['fname']." ".$row['mname']." ".$row['lname']." ".$row['suffix']; + $name = sanitizeHTML($row['fname'])." ".sanitizeHTML($row['mname'])." ".sanitizeHTML($row['lname'])." ".sanitizeHTML($row['suffix']); if($_SESSION['_config']['wothash'] != md5($name."-".$row['dob']) || $_SESSION['_config']['wothash'] != $_REQUEST['pagehash']) { show_page("VerifyData","",_("Race condition discovered, user altered details during assurance procedure. PLEASE MAKE SURE THE NEW DETAILS BELOW MATCH THE ID DOCUMENTS.")); -- cgit v1.2.1