mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08: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