replacements: strip spaces from replacement URL.
Fix a handful of replacements having a replacement URL with a space in front or at the end. This caused problems when searching by replacement URL.
This commit is contained in:
@@ -27,7 +27,7 @@ class PostReplacementProcessor
|
||||
elsif Source::URL.page_url(image_url).present?
|
||||
canonical_url = image_url
|
||||
else
|
||||
canonical_url = replacement.replacement_url
|
||||
canonical_url = replacement.replacement_url.strip
|
||||
end
|
||||
|
||||
replacement.replacement_url = canonical_url
|
||||
|
||||
Reference in New Issue
Block a user