Changeset 64 for trunk/dns.cgi


Ignore:
Timestamp:
10/25/10 16:49:10 (14 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix up buglet in search filtering by start letter; 0-9 did not display properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r63 r64  
    6868
    6969# per-page startwith, filter, searchsubs
    70 $session->param($webvar{page}.'startwith', $webvar{startwith}) if $webvar{startwith};
     70$session->param($webvar{page}.'startwith', $webvar{startwith}) if defined($webvar{startwith});
    7171$session->param($webvar{page}.'filter', $webvar{filter}) if defined($webvar{filter});
    7272$webvar{searchsubs} =~ s/^n ?// if $webvar{searchsubs};
     
    11461146
    11471147# waffle, waffle - keep state on these as well as sortby, sortorder?
    1148   $page->param("start$webvar{startwith}" => 1) if $webvar{startwith} && $webvar{startwith} =~ /^[a-z]$/;
     1148  $page->param("start$startwith" => 1) if $startwith && $startwith =~ /^(?:[a-z]|0-9)$/;
    11491149
    11501150  $page->param(filter => $filter) if $filter;
     
    12461246
    12471247# waffle, waffle - keep state on these as well as sortby, sortorder?
    1248   $page->param("start$startwith" => 1) if $startwith && $startwith =~ /^[a-z]$/;
     1248  $page->param("start$startwith" => 1) if $startwith && $startwith =~ /^(?:[a-z]|0-9)$/;
    12491249
    12501250  $page->param(filter => $filter) if $filter;
Note: See TracChangeset for help on using the changeset viewer.