Allow () in filenames.
[pr0n] / perl / Sesse / pr0n / pr0n.pm
index b730aca3db18e621ccb7268d5f934d4dc4d604fe..b65ccf096c1797fb5c95a5b1f5b65d2ec0b9c303 100644 (file)
@@ -71,7 +71,7 @@ sub handler {
                 $uri =~ /^\/\+all\/?$/ ||
                 $uri =~ /^\/\+tags\/[a-zA-Z0-9-]+\/?$/) {
                return Sesse::pr0n::Index::handler($r);
-       } elsif ($uri =~ m#^/[a-zA-Z0-9-]+/(\d+x\d+/|original/)?(nobox/)?[a-zA-Z0-9._-]+$#) {
+       } elsif ($uri =~ m#^/[a-zA-Z0-9-]+/(\d+x\d+/|original/)?(nobox/)?[a-zA-Z0-9._()-]+$#) {
                return Sesse::pr0n::Image::handler($r);
        }