projects
/
SQL2XLS
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bc4540
)
untaint config_path
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 3 Nov 2008 21:39:44 +0000
(21:39 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 3 Nov 2008 21:39:44 +0000
(21:39 +0000)
git-svn-id: svn://svn.rot13.org/SQL2XLS@15
2e857b76
-582b-47e5-ad5c-
b3ba0f0ee29b
sql2xls.cgi
patch
|
blob
|
history
diff --git
a/sql2xls.cgi
b/sql2xls.cgi
index
f6a39d4
..
c71a7d6
100755
(executable)
--- a/
sql2xls.cgi
+++ b/
sql2xls.cgi
@@
-85,7
+85,7
@@
our $debug = 1;
my $sql_dir = $ENV{SCRIPT_FILENAME} || '.';
$sql_dir =~ s,/[^/]+$,,;
-my $config_path =
"$sql_dir/config.pl";
+my $config_path =
$1 if "$sql_dir/config.pl" =~ m/^(.+)$/; # untaint
warn "# using $config_path\n";
require $config_path if -e $config_path;