mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 19:57:18 +08:00
FIX: handle encoded mailto links when looking for upload record
This commit is contained in:
@ -84,7 +84,7 @@ class Upload < ActiveRecord::Base
|
||||
|
||||
# always try to get the path
|
||||
uri = begin
|
||||
URI(url)
|
||||
URI(URI.unescape(url))
|
||||
rescue URI::InvalidURIError
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user