diff options
-rwxr-xr-x | jobqueue.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/jobqueue.pl b/jobqueue.pl index f56e2cdb6..1b956917e 100755 --- a/jobqueue.pl +++ b/jobqueue.pl @@ -7,8 +7,14 @@ # defined by the Mozilla Public License, v. 2.0. use strict; + +use Cwd qw(abs_path); use File::Basename; -BEGIN { chdir dirname($0); } +BEGIN { + # Untaint the abs_path. + my ($a) = abs_path($0) =~ /^(.*)$/; + chdir dirname($a); +} use lib qw(. lib); use Bugzilla; |