diff options
author | Koosha Khajeh Moogahi <koosha.khajeh@gmail.com> | 2012-07-04 00:56:31 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-07-04 00:56:31 +0200 |
commit | 4c8334f9563b88df6bc1603804f9f2d6c2b13b7a (patch) | |
tree | 23e15415a0db4b4643404b564bc0e49349538834 /Bugzilla | |
parent | 1b0d24407e618c4cc0ad1c6e176f5aca3803f7c9 (diff) | |
download | bugs-4c8334f9563b88df6bc1603804f9f2d6c2b13b7a.tar bugs-4c8334f9563b88df6bc1603804f9f2d6c2b13b7a.tar.gz bugs-4c8334f9563b88df6bc1603804f9f2d6c2b13b7a.tar.bz2 bugs-4c8334f9563b88df6bc1603804f9f2d6c2b13b7a.tar.xz bugs-4c8334f9563b88df6bc1603804f9f2d6c2b13b7a.zip |
Bug 366152: Trim whitespaces from the URL field
r/a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Bug.pm | 1 |
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. |