Author: dom Date: 2006-04-20 15:13:20 +0100 (Thu, 20 Apr 2006) New Revision: 773
Modified: trunk/Changes trunk/wiki.cgi Log: Fix RSS redirection (fixes #54)
Modified: trunk/Changes =================================================================== --- trunk/Changes 2006-04-20 10:46:50 UTC (rev 772) +++ trunk/Changes 2006-04-20 14:13:20 UTC (rev 773) @@ -10,6 +10,7 @@ #107 Don't display partial http:// URL in preview. #93 Upgrade to new Google Maps API (for smaller javascript download) #103 Fix empty Category/Locale list bug. + #54 Fix RSS redirection for backwards compatibility.
0.52 5 March 2006 IMPORTANT CHANGE: "supersearch.cgi" is now simply "search.cgi". If you
Modified: trunk/wiki.cgi =================================================================== --- trunk/wiki.cgi 2006-04-20 10:46:50 UTC (rev 772) +++ trunk/wiki.cgi 2006-04-20 14:13:20 UTC (rev 773) @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/perl
use strict; use warnings; @@ -114,7 +114,16 @@ $guide->display_node( id => 'RecentChanges' ); } } elsif ($action eq 'rss') { - print $q->redirect( $script_url . '?action=rc;format=rss' ); + my $redir_target = $script_url . $script_name . '?action=rc;format=rss'; + my %args = map { $_ => ( $q->param($_) || "" ) } + qw( feed items days ignore_minor_edits username + category locale ); + foreach my $arg (sort keys %args) { + if ($args{$arg} ne "") { + $redir_target .= ";$arg=$args{$arg}"; + } + } + print $q->redirect( $redir_target ); } else { # Default is to display a node. if ( $format and $format eq "rdf" ) { display_node_rdf( node => $node );
openguides-commits@lists.openguides.org