Skip to content

Commit b0d132e

Browse files
committed
make sure image urls have a scheme before pulling them in
1 parent 6b6c3d0 commit b0d132e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/jobs/regular/pull_hotlinked_images.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def execute(args)
2424

2525
extract_images_from(post.cooked).each do |image|
2626
src = image['src']
27+
src = "http:" + src if src.start_with?("//")
2728

2829
if is_valid_image_url(src)
2930
begin

0 commit comments

Comments
 (0)