From: Steinar H. Gunderson Date: Wed, 25 Jul 2007 12:53:13 +0000 (+0200) Subject: Syntax highlighting woes. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=46f7f636718b25cae0eef1a8c87b0447f1287a54;hp=ef088e4bb570c5f2d27b3c7ab356e63615dbbaa8 Syntax highlighting woes. --- diff --git a/perl/Sesse/pr0n/Index.pm b/perl/Sesse/pr0n/Index.pm index 260aa64..6c7bc80 100644 --- a/perl/Sesse/pr0n/Index.pm +++ b/perl/Sesse/pr0n/Index.pm @@ -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; }