From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 05:55:03 +0000 (+0000) Subject: Avoid "conditional and" for preparing $path_info X-Git-Tag: debian/2.1.2-2~99 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=74eb1a75bb6accd3cda923bc1dfe6d2d1a877246;p=pkg%2Fblosxom.git Avoid "conditional and" for preparing $path_info --- diff --git a/blosxom.cgi b/blosxom.cgi index 1adc8ef..b80cfbc 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -157,7 +157,7 @@ $flavour = ''; if ( $path_info[$#path_info] =~ /(.+)\.(.+)$/ ) { $flavour = $2; - $1 ne 'index' and $path_info .= "/$1.$2"; + $path_info .= "/$1.$2" if $1 ne 'index'; pop @path_info; } else { $flavour = param('flav') || $default_flavour;