Changeset 841
- Timestamp:
- 04/28/22 16:47:20 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/textrecs.cgi
r797 r841 3 3 ## 4 4 # $Id$ 5 # Copyright 2012-2014,2020 Kris Deugau <kdeugau@deepnet.cx>5 # Copyright 2012-2014,2020,2022 Kris Deugau <kdeugau@deepnet.cx> 6 6 # 7 7 # This program is free software: you can redistribute it and/or modify … … 28 28 use DBI; 29 29 30 # push "the directory the script is in" into @INC 31 use FindBin; 32 use lib "$FindBin::RealBin/"; 30 # Taint-safe (ish) voodoo to push "the directory the script is in" into @INC. 31 use File::Spec (); 32 use File::Basename (); 33 my $path; 34 BEGIN { 35 $path = File::Basename::dirname(File::Spec->rel2abs($0)); 36 if ($path =~ /(.*)/) { 37 $path = $1; 38 } 39 } 40 use lib $path; 33 41 34 42 use DNSDB;
Note:
See TracChangeset
for help on using the changeset viewer.