Syntax highlighting woes.
authorSteinar H. Gunderson <sesse@debian.org>
Wed, 25 Jul 2007 12:53:13 +0000 (14:53 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Wed, 25 Jul 2007 12:53:13 +0000 (14:53 +0200)
perl/Sesse/pr0n/Index.pm

index 260aa64a755b2557b87097806af9138be1777a8c..6c7bc8079c7ef0bdc622f1f2c73ae37f63e3a31d 100644 (file)
@@ -29,7 +29,7 @@ sub handler {
        }
 
        # Fix common error: pr0n.sesse.net/event -> pr0n.sesse.net/event/
-       if ($r->uri !~ m#/$#) {
+       if ($r->uri !~ /\/$/) {
                $r->headers_out->{'location'} = "/$event/";
                return Apache2::Const::REDIRECT;
        }