Changeset 1056 for branches


Ignore:
Timestamp:
03/19/26 12:40:50 (5 hours ago)
Author:
Kris Deugau
Message:

/branches/stable

Merge forward a few more commits from /trunk fixing nuisance issues found
deploying earlier changes

Location:
branches/stable
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/stable

  • branches/stable/dns-rpc.cgi

    r1047 r1056  
    2222use warnings;
    2323
    24 # push "the directory the script is in" into @INC
    25 use FindBin;
    26 use lib "$FindBin::RealBin/";
     24# Taint-safe (ish) voodoo to push "the directory the script is in" into @INC.
     25# See https://secure.deepnet.cx/trac/dnsadmin/ticket/80 for more gory details on how we got here.
     26use File::Spec ();
     27use File::Basename ();
     28my $path;
     29BEGIN {
     30    $path = File::Basename::dirname(File::Spec->rel2abs($0));
     31    if ($path =~ /(.*)/) {
     32        $path = $1;
     33    }
     34}
     35use lib $path;
    2736
    2837use DNSDB;
     
    374383}
    375384
     385
    376386=head3 revID
    377387
     
    398408  return $revid;
    399409}
    400 
    401410
    402411
Note: See TracChangeset for help on using the changeset viewer.