mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
And add tests for empty string & null
This commit is contained in:
@@ -87,7 +87,7 @@ module Email
|
||||
value = header[1].strip
|
||||
result[name] = value if name.length > 0 && value.length > 0
|
||||
end
|
||||
}
|
||||
} if !string.nil?
|
||||
result
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user