Commit c1fba5ff authored by jurgbohn's avatar jurgbohn

Quote-fix

parent 404c0c4f
......@@ -49,17 +49,15 @@ if(isset($_GET['auth'])) {
$row = $res->fetchRow(MDB2_FETCHMODE_ASSOC);
$sql = "UPDATE Users SET active = 1 WHERE username = " . $row['username'];
$sql = "UPDATE Users SET active = 1 WHERE username = " . $mdb2->quote($row['username'], 'text');
$res = $mdb2->exec($sql);
if (PEAR::isError($res)) {
$errors = $res->getUserInfo();
$errors = "Error: " . $res->getUserInfo();
$smarty->assign('errors', $errors);
$smarty->display('error.tpl');
die();
}
$smarty->assign('activated', true);
$smarty->display('register.tpl');
die();
}
if(isset($_POST['register'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment