Bug 744338: jobqueue.pl won't work if not called from the bugzilla/ root directory
r/a=LpSolit git-svn-id: svn://10.0.0.236/trunk@263792 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0d7d1aac34
commit
b87849403a
@ -1 +1 @@
|
||||
8219
|
||||
8220
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user