Commit eaa9e329 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

Enforce the table name for the fields

parent 0265576e
...@@ -610,13 +610,13 @@ sub list_requests { ...@@ -610,13 +610,13 @@ sub list_requests {
my $time_recent = ($now[5]+=1900)."-".$now[4]."-".$now[3] my $time_recent = ($now[5]+=1900)."-".$now[4]."-".$now[3]
." ".$now[2].":".$now[1].":00"; ." ".$now[2].":".$now[1].":00";
my $sth = $CONNECTOR->dbh->prepare( my $sth = $CONNECTOR->dbh->prepare(
"SELECT requests.id, command, args, date_changed, status" "SELECT requests.id, command, args, date_changed, requests.status"
." ,requests.error, id_domain ,domains.name as domain" ." ,requests.error, id_domain ,domains.name as domain"
." ,date_changed " ." ,date_changed "
." FROM requests left join domains " ." FROM requests left join domains "
." ON requests.id_domain = domains.id" ." ON requests.id_domain = domains.id"
." WHERE " ." WHERE "
." status <> 'done' " ." requests.status <> 'done' "
." OR ( command = 'download' AND date_changed >= ?) " ." OR ( command = 'download' AND date_changed >= ?) "
." ORDER BY date_changed DESC LIMIT 10" ." ORDER BY date_changed DESC LIMIT 10"
); );
......
Supports Markdown
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