From: dklawren Date: Mon, 9 Dec 2019 15:54:33 +0000 (-0500) Subject: Bug 1599539 - Bugzilla should strip whitespace from the beginning of the URL field X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27c80557b3577d12c34c1f081d376db698180ce2;p=thirdparty%2Fbugzilla.git Bug 1599539 - Bugzilla should strip whitespace from the beginning of the URL field --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 8dd4758aa..7ef1ded76 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1762,7 +1762,8 @@ sub _check_assigned_to { sub _check_bug_file_loc { my ($invocant, $url) = @_; - $url = '' if !defined($url); + return '' if !defined $url; + $url = trim($url); # On bug entry, if bug_file_loc is "http://", the default, use an # empty value instead. However, on bug editing people can set that