X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FIndex.pm;h=cb83a9252933dcb9c19dae44de0b13666c835b7b;hp=7d2ddf8227703ae74a51a066557c06b81f5bf55e;hb=6cd0332e10bb468ef5506be63b8a47f7c7e12fd9;hpb=6c8c4bf3f1e3109523f9ec6117abfdf0e04a0d99 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) {