Fix a bug for the cases where http_images_path ends in a slash.
This commit is contained in:
parent
ff14940206
commit
a56fe74dbb
@ -28,7 +28,10 @@ module Sass::Script::Functions
|
|||||||
else
|
else
|
||||||
Compass.configuration.http_images_path
|
Compass.configuration.http_images_path
|
||||||
end
|
end
|
||||||
path = "#{http_images_path}/#{path}" if http_images_path
|
if http_images_path
|
||||||
|
http_images_path = "#{http_images_path}/" unless http_images_path[-1..-1] == "/"
|
||||||
|
path = "#{http_images_path}#{path}"
|
||||||
|
end
|
||||||
Sass::Script::String.new("url(#{path})")
|
Sass::Script::String.new("url(#{path})")
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user