Changeset 213


Ignore:
Timestamp:
12/23/11 15:35:54 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix lurking bug of sorts where the session ID and page could get lost
on some links. Observed to affect the WHOIS and DNS query *results*
pages, on the group tree - but not on the initial query page.

May have theoretically affected other pages, although some of them
bypass the bug due to use of changepage() with the 302 redirect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r210 r213  
    155155$uri_self =~ s/\&filter=[a-z09-]*(\&)?/$1/g;
    156156use warnings qw(uninitialized);
     157
     158# Fix up $uri_self so we don't lose the session/page
     159$uri_self .= "?sid=$sid&page=$webvar{page}" if $uri_self =~ m{/dns.cgi$};
     160$uri_self = "$ENV{SCRIPT_NAME}?sid=$sid&page=$webvar{page}$1" if $uri_self =~ m{/dns.cgi\&(.+)$};
    157161
    158162# pagination
Note: See TracChangeset for help on using the changeset viewer.