Commit 2b222a69 authored by Håkan Jerning's avatar Håkan Jerning Committed by Frédéric Buclin

Bug 744338: jobqueue.pl won't work if not called from the bugzilla/ root directory

r/a=LpSolit
parent 92a81752
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment