FIX: Strip whitespace from URL before validating (#12174)

This commit is contained in:
Bianca Nenciu
2021-02-25 13:31:38 +02:00
committed by GitHub
parent 13c2a4886f
commit a9a93b15ec
2 changed files with 6 additions and 1 deletions

View File

@ -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?