X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FIndex.pm;h=cb83a9252933dcb9c19dae44de0b13666c835b7b;hp=7d2ddf8227703ae74a51a066557c06b81f5bf55e;hb=400a1bbb95bf6837807e2819825cddd00c219cf1;hpb=8e5ec72d5a96e0828d61cd74d27cfa3725d337db diff --git a/perl/Sesse/pr0n/Index.pm b/perl/Sesse/pr0n/Index.pm index 7d2ddf8..cb83a92 100644 --- a/perl/Sesse/pr0n/Index.pm +++ b/perl/Sesse/pr0n/Index.pm @@ -122,9 +122,8 @@ sub handler { } } if (defined($author)) { - my $aq = $dbh->quote($author); - - $where .= " AND takenby=$aq"; + my @authors = split /,/, $author; + $where .= " AND takenby IN (" . join(', ', map { $dbh->quote($_) } @authors) . ")"; } if (defined($num) && $num == -1) {