Commit 4c8334f9 authored by Koosha Khajeh Moogahi's avatar Koosha Khajeh Moogahi Committed by Frédéric Buclin

Bug 366152: Trim whitespaces from the URL field

r/a=LpSolit
parent 1b0d2440
...@@ -1236,6 +1236,7 @@ sub _check_assigned_to { ...@@ -1236,6 +1236,7 @@ sub _check_assigned_to {
sub _check_bug_file_loc { sub _check_bug_file_loc {
my ($invocant, $url) = @_; my ($invocant, $url) = @_;
$url = '' if !defined($url); $url = '' if !defined($url);
$url = trim($url);
# On bug entry, if bug_file_loc is "http://", the default, use an # On bug entry, if bug_file_loc is "http://", the default, use an
# empty value instead. However, on bug editing people can set that # empty value instead. However, on bug editing people can set that
# back if they *really* want to. # back if they *really* want to.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment