Fix background images with special characters
Just like we did for budgets, we're doing the same thing in all the places where we render background images attached by either regular users or administrators. This way we correctly render background images with characters like brackets or quotes.
This commit is contained in:
@@ -14,4 +14,8 @@ module ImagesHelper
|
||||
version: (version if image.persisted?),
|
||||
show_caption: show_caption
|
||||
end
|
||||
|
||||
def attached_background_css(path)
|
||||
"background-image: url('#{j path}');"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user