summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorKoosha Khajeh Moogahi <koosha.khajeh@gmail.com>2012-07-04 00:56:31 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-07-04 00:56:31 +0200
commit4c8334f9563b88df6bc1603804f9f2d6c2b13b7a (patch)
tree23e15415a0db4b4643404b564bc0e49349538834 /Bugzilla/Bug.pm
parent1b0d24407e618c4cc0ad1c6e176f5aca3803f7c9 (diff)
downloadbugzilla-4c8334f9563b88df6bc1603804f9f2d6c2b13b7a.tar.gz
bugzilla-4c8334f9563b88df6bc1603804f9f2d6c2b13b7a.tar.xz
Bug 366152: Trim whitespaces from the URL field
r/a=LpSolit
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 3d9689aca..eae23d995 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.