Support a new form of image: box/, which is exactly the opposite of nobox/
[pr0n] / perl / Sesse / pr0n / pr0n.pm
index 16b696414202144b42c76ef93767118782c4874b..eeb93b0a7aa544df4b88db2e350a6d24e9ec4e04 100644 (file)
@@ -72,7 +72,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/)?((?:no)?box/)?[a-zA-Z0-9._()-]+$#) {
                return Sesse::pr0n::Image::handler($r);
        }