]> git.sesse.net Git - pr0n/blobdiff - perl/Sesse/pr0n/Index.pm
Allow file uploads via POST (from Windows XP's file uploading wizard; the client
[pr0n] / perl / Sesse / pr0n / Index.pm
index e85ab6e7ae0e281627da373a820994f630ddee18..de0e3bf2f640c1df5b0aafea98041ecad1da09e4 100644 (file)
@@ -82,7 +82,7 @@ sub handler {
                $num = undef;
        }
 
-       my $ref = $dbh->selectrow_hashref('SELECT name,date,EXTRACT(EPOCH FROM last_update) AS last_update FROM events WHERE id=? AND vhost=?',
+       $ref = $dbh->selectrow_hashref('SELECT name,date,EXTRACT(EPOCH FROM last_update) AS last_update FROM events WHERE id=? AND vhost=?',
                undef, $event, $r->get_server_name)
                or error($r, "Could not find event $event", 404, "File not found");