Convert rss20 to use $path_info_full instead of $ENV{PATH_INFO}.
authorGavin Carr <gonzai@users.sourceforge.net>
Mon, 17 Dec 2007 15:41:22 +0000 (15:41 +0000)
committerGavin Carr <gonzai@users.sourceforge.net>
Mon, 17 Dec 2007 15:41:22 +0000 (15:41 +0000)
gavinc/rss20

index 4800501e3f1b48e6516786e9a6bd5a7d981ed9c8..1f5e5fb3f000c3d3569c71c24bc117f7124c7369 100644 (file)
@@ -175,11 +175,12 @@ HEAD
      ' ' x $channel_indent .
       qq(<copyright>$rss20::copyright</copyright>\n);
   }
+  my $path_info_full = $blosxom::path_info_full || "$blosxom::path_info/index.rss";
   $blosxom::template{$flavour}{'head'} .= <<HEAD;
         <pubDate>\$storydate::latest_rfc822</pubDate>
         <language>$blosxom::blog_language</language>
         <generator>$rss20::generator</generator>
-        <atom:link href="$blosxom::url$ENV{PATH_INFO}" rel="self" type="application/rss+xml" />
+        <atom:link href="$blosxom::url$path_info_full" rel="self" type="application/rss+xml" />
         <sy:updatePeriod>hourly</sy:updatePeriod>
         <sy:updateFrequency>1</sy:updateFrequency>
         <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>