]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 366152: Trim whitespaces from the URL field
authorKoosha Khajeh Moogahi <koosha.khajeh@gmail.com>
Tue, 3 Jul 2012 22:56:31 +0000 (00:56 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 3 Jul 2012 22:56:31 +0000 (00:56 +0200)
r/a=LpSolit

Bugzilla/Bug.pm

index 3d9689acaaf9d4e8b4e3f267aec64fc39a2cfbcd..eae23d995deeeb39395de6889f1c897ff7fe02a3 100644 (file)
@@ -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.