diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-12-16 20:17:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-16 20:17:05 +0100 |
commit | 334bead74bc9c5e819f14946726eaad40986d636 (patch) | |
tree | e7ecf8d4eba2e6a046da8a9dc8828f35b75c7428 /extensions/Bitly/lib | |
parent | 49e0df0d4e1b2f25be4ab36660dac5e47768c9a1 (diff) | |
download | bugzilla-334bead74bc9c5e819f14946726eaad40986d636.tar.gz bugzilla-334bead74bc9c5e819f14946726eaad40986d636.tar.xz |
Bug 1403777 - Migrate urlbase from params to localconfig
Diffstat (limited to 'extensions/Bitly/lib')
-rw-r--r-- | extensions/Bitly/lib/WebService.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/Bitly/lib/WebService.pm b/extensions/Bitly/lib/WebService.pm index b8ada56d2..4b44faa0e 100644 --- a/extensions/Bitly/lib/WebService.pm +++ b/extensions/Bitly/lib/WebService.pm @@ -18,7 +18,7 @@ use Bugzilla::Constants; use Bugzilla::Error; use Bugzilla::Search; use Bugzilla::Search::Quicksearch; -use Bugzilla::Util 'correct_urlbase'; +use Bugzilla::Util (); use Bugzilla::WebService::Util 'validate'; use JSON; use LWP::UserAgent; @@ -47,7 +47,7 @@ sub _validate_uri { my $uri = URI->new($url); $uri->query(undef); $uri->fragment(undef); - if ($uri->as_string ne correct_urlbase() . 'buglist.cgi') { + if ($uri->as_string ne Bugzilla->localconfig->{urlbase} . 'buglist.cgi') { ThrowUserError('bitly_unsupported'); } @@ -82,7 +82,7 @@ sub list { my $data = $search->data; # form a bug_id only url, sanity check the length - $uri = URI->new(correct_urlbase() . 'buglist.cgi?bug_id=' . join(',', map { $_->[0] } @$data)); + $uri = URI->new(Bugzilla->localconfig->{urlbase} . 'buglist.cgi?bug_id=' . join(',', map { $_->[0] } @$data)); if (length($uri->as_string) > CGI_URI_LIMIT) { ThrowUserError('bitly_failure', { message => "Too many bugs returned by search" }); } |