Changeset 659


Ignore:
Timestamp:
Jul 22, 2005, 1:37:33 AM (17 years ago)
Author:
Earle Martin
Message:

fix bug introducing unneeded 'id=' into URLs when saving pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides.pm

    r658 r659  
    866866    $oldid = $formatter->node_name_to_node_param( $redirected_from ) if $redirected_from;
    867867
    868     my $redir_param ='';
    869     $redir_param = ";oldid=$oldid" if $oldid;
    870 
    871     return CGI->redirect( "$script_url$script_name?id=$id$redir_param" );
     868    my $redir_param = "$script_url$script_name?";
     869    $redir_param .= 'id=' if $oldid;
     870    $redir_param .= $id;
     871    $redir_param .= ";oldid=$oldid" if $oldid;
     872   
     873    return CGI->redirect( $redir_param );
    872874}
    873875
Note: See TracChangeset for help on using the changeset viewer.