We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 87619c5c authored by jurgbohn's avatar jurgbohn

Quote-fix

parent fe5b23bd
......@@ -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