From: Koosha Khajeh Moogahi Date: Tue, 3 Jul 2012 22:56:31 +0000 (+0200) Subject: Bug 366152: Trim whitespaces from the URL field X-Git-Tag: bugzilla-4.3.2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c8334f9563b88df6bc1603804f9f2d6c2b13b7a;p=thirdparty%2Fbugzilla.git Bug 366152: Trim whitespaces from the URL field r/a=LpSolit --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 3d9689acaa..eae23d995d 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1236,6 +1236,7 @@ sub _check_assigned_to { sub _check_bug_file_loc { my ($invocant, $url) = @_; $url = '' 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 # back if they *really* want to.