diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb index 1d4b2836cec..fd3fab9acd9 100644 --- a/lib/cooked_post_processor.rb +++ b/lib/cooked_post_processor.rb @@ -181,6 +181,7 @@ class CookedPostProcessor def is_valid_image_uri?(url) uri = URI.parse(url) %w(http https).include? uri.scheme + rescue URI::InvalidURIError end def dirty?