]> git.sesse.net Git - pr0n/commitdiff
Fix original/nobox/.
authorSteinar H. Gunderson <sesse@debian.org>
Sun, 6 Aug 2006 23:23:55 +0000 (01:23 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Sun, 6 Aug 2006 23:23:55 +0000 (01:23 +0200)
perl/Sesse/pr0n/Image.pm

index 6df8ea25e29509a643ef829120f110c59dffea32..e436428950b6adc9d5a8e56e23755d3eab4ae710 100644 (file)
@@ -16,9 +16,9 @@ sub handler {
        # Find the event and file name
        my ($event,$filename,$xres,$yres);
        my $infobox = 1;
-       if ($r->uri =~ m#^/([a-zA-Z0-9-]+)/original/([a-zA-Z0-9._-]+)$#) {
+       if ($r->uri =~ m#^/([a-zA-Z0-9-]+)/original/(nobox/)?([a-zA-Z0-9._-]+)$#) {
                $event = $1;
-               $filename = $2;
+               $filename = $3;
        } elsif ($r->uri =~ m#^/([a-zA-Z0-9-]+)/(\d+)x(\d+)/(nobox/)?([a-zA-Z0-9._-]+)$#) {
                $event = $1;
                $filename = $5;