mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 01:15:26 +08:00
FIX: Strip whitespace from URL before validating (#12174)
This commit is contained in:
@ -15,7 +15,7 @@ class TopicRetriever
|
||||
private
|
||||
|
||||
def invalid_url?
|
||||
!EmbeddableHost.url_allowed?(@embed_url)
|
||||
!EmbeddableHost.url_allowed?(@embed_url.strip)
|
||||
end
|
||||
|
||||
def retrieved_recently?
|
||||
|
Reference in New Issue
Block a user