From 27c80557b3577d12c34c1f081d376db698180ce2 Mon Sep 17 00:00:00 2001 From: dklawren Date: Mon, 9 Dec 2019 10:54:33 -0500 Subject: [PATCH] Bug 1599539 - Bugzilla should strip whitespace from the beginning of the URL field --- Bugzilla/Bug.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3