Changeset 245 for trunk/dns.cgi


Ignore:
Timestamp:
02/27/12 16:08:34 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Pass revrec on group change. See #26.

Nitpick cleanup on redirection via changepage(); sort the URL
parameters so we've got some chance of tracking where we've
been with browser history.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r244 r245  
    280280##fixme: probably need to handle webvar{revrec}=='y' too
    281281    if ($webvar{page} eq 'reclist' && $webvar{defrec} eq 'y') {
    282       my %args = (page => $webvar{page}, id => $curgroup, defrec => $webvar{defrec});
     282      my %args = (page => $webvar{page}, id => $curgroup, defrec => $webvar{defrec}, revrec => $webvar{revrec});
    283283      $args{errmsg} = $errmsg if $errmsg;
    284284      changepage(%args);
     
    17331733  # handle user check
    17341734  my $newurl = "http://$ENV{HTTP_HOST}$ENV{SCRIPT_NAME}?sid=$sid";
    1735   foreach (keys %params) {
     1735  foreach (sort keys %params) {
    17361736    $newurl .= "&$_=".$q->url_encode($params{$_});
    17371737  }
Note: See TracChangeset for help on using the changeset viewer.