Author: earle Date: 2005-07-22 01:37:33 +0100 (Fri, 22 Jul 2005) New Revision: 659
Modified: trunk/lib/OpenGuides.pm Log: fix bug introducing unneeded 'id=' into URLs when saving pages
Modified: trunk/lib/OpenGuides.pm =================================================================== --- trunk/lib/OpenGuides.pm 2005-07-21 15:20:13 UTC (rev 658) +++ trunk/lib/OpenGuides.pm 2005-07-22 00:37:33 UTC (rev 659) @@ -865,10 +865,12 @@ my $oldid; $oldid = $formatter->node_name_to_node_param( $redirected_from ) if $redirected_from;
- my $redir_param =''; - $redir_param = ";oldid=$oldid" if $oldid; - - return CGI->redirect( "$script_url$script_name?id=$id$redir_param" ); + my $redir_param = "$script_url$script_name?"; + $redir_param .= 'id=' if $oldid; + $redir_param .= $id; + $redir_param .= ";oldid=$oldid" if $oldid; + + return CGI->redirect( $redir_param ); }
sub get_cookie {