From: Steinar H. Gunderson Date: Sun, 6 Aug 2006 23:23:55 +0000 (+0200) Subject: Fix original/nobox/. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=6e87d26481ba152a8504c3c6c8650d1927206331;ds=sidebyside Fix original/nobox/. --- diff --git a/perl/Sesse/pr0n/Image.pm b/perl/Sesse/pr0n/Image.pm index 6df8ea2..e436428 100644 --- a/perl/Sesse/pr0n/Image.pm +++ b/perl/Sesse/pr0n/Image.pm @@ -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;