]> git.deb.at Git - pkg/blosxom.git/commitdiff
Avoid "conditional and" for preparing $path_info
authorBarijaona Ramaholimihaso <barijaona@users.sourceforge.net>
Sat, 22 Sep 2007 05:55:03 +0000 (05:55 +0000)
committerBarijaona Ramaholimihaso <barijaona@users.sourceforge.net>
Sat, 22 Sep 2007 05:55:03 +0000 (05:55 +0000)
blosxom.cgi

index 1adc8ef49d404072c39ac1e7ce6554dbef5c3646..b80cfbcc1b3e2c3fcb0fc0a8fa9e71df75e63406 100755 (executable)
@@ -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;