mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
make sure image urls have a scheme before pulling them in
This commit is contained in:
parent
6b6c3d05dd
commit
b0d132ee2e
@ -24,6 +24,7 @@ module Jobs
|
||||
|
||||
extract_images_from(post.cooked).each do |image|
|
||||
src = image['src']
|
||||
src = "http:" + src if src.start_with?("//")
|
||||
|
||||
if is_valid_image_url(src)
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user