Changeset 1047 for branches/stable/dns.cgi
- Timestamp:
- 02/27/26 16:40:46 (7 hours ago)
- Location:
- branches/stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable
- Property svn:mergeinfo changed
/trunk merged: 797-798,828,831,833,838-839,844-846,879,883-885,887,894,903,905-909
- Property svn:mergeinfo changed
-
branches/stable/dns.cgi
r1033 r1047 3 3 ## 4 4 # $Id$ 5 # Copyright 2008-20 19Kris Deugau <kdeugau@deepnet.cx>5 # Copyright 2008-2020 Kris Deugau <kdeugau@deepnet.cx> 6 6 # 7 7 # This program is free software: you can redistribute it and/or modify … … 35 35 # return ! eval { eval("#" . substr(join("", @_), 0, 0)); 1 }; 36 36 #} 37 #use Cwd 'abs_path'; 38 #use File::Basename; 39 #use lib dirname( abs_path $0 ); 40 #die "argh! tainted!" if is_tainted($0); 41 #die "argh! \@INC got tainted!" if is_tainted(@INC); 42 43 # don't remove! required for GNU/FHS-ish install from tarball 44 use lib '.'; ##uselib## 37 38 # Taint-safe (ish) voodoo to push "the directory the script is in" into @INC. 39 # See https://secure.deepnet.cx/trac/dnsadmin/ticket/80 for more gory details on how we got here. 40 use File::Spec (); 41 use File::Basename (); 42 my $path; 43 BEGIN { 44 $path = File::Basename::dirname(File::Spec->rel2abs($0)); 45 if ($path =~ /(.*)/) { 46 $path = $1; 47 } 48 } 49 use lib $path; 45 50 46 51 use DNSDB; … … 120 125 $webvar{startwith} =~ s/^(0-9|[a-z]).*/$1/ if $webvar{startwith}; 121 126 # not much call for chars not allowed in domain names 122 $webvar{filter} =~ s/[^a-zA-Z0-9_.:\@%-]//g if $webvar{filter}; 127 # allow <>= so searches can use the Postgres CIDR operators 128 # allow , for things like DMARC records 129 $webvar{filter} =~ s{[^a-zA-Z0-9_.,:\@%<>=/-]}{}g if $webvar{filter}; 123 130 ## only set 'y' if box is checked, no other values legal 124 131 ## however, see https://secure.deepnet.cx/trac/dnsadmin/ticket/31 … … 1897 1904 # need to search on characters outside this set until we get into IDNs 1898 1905 # note this is a little larger due to template records 1899 $webvar{searchfor} =~ s/[^a-zA-Z0-9_.:\@%-]//g if $webvar{searchfor}; 1906 # allow <>= so searches can use the Postgres CIDR operators 1907 # allow , for things like DMARC records 1908 $webvar{searchfor} =~ s{[^a-zA-Z0-9_.,:\@%<>=/-]}{}g if $webvar{searchfor}; 1900 1909 1901 1910 # save the search in the session, same as the "filter" in various other lists... … … 2347 2356 # } 2348 2357 $page->param(domtable => $zonelist); 2349 } # end list domains()2358 } # end listzones() 2350 2359 2351 2360
Note:
See TracChangeset
for help on using the changeset viewer.
![[ DNS Administrator ]](/fx/dnsadmin-logo.png)