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

Commit cf9e72e7 authored by Mike Sheldon's avatar Mike Sheldon

Don't require token for retrieving userid from session keys

parent 32682e8d
......@@ -437,8 +437,8 @@ function get_userid() {
}
$username = $adodb->GetOne('SELECT username FROM Auth WHERE '
. 'token = ' . $adodb->qstr($_GET['token']) . ' AND '
. 'username IS NOT NULL AND sk = '.$adodb->qstr($_GET['sk']));
. 'sk = ' . $adodb->qstr($_GET['sk']) . ' AND '
. 'username IS NOT NULL');
if (!$username) {
report_failure(LFM_INVALID_SESSION);
......
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