mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-02 18:19:50 -04:00
make sure image urls have a scheme before pulling them in
This commit is contained in:
parent
6b6c3d05dd
commit
b0d132ee2e
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue