Skip to content

Commit

Permalink
Using File.join to join asset path segments.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradly committed Apr 4, 2014
1 parent 5af68f0 commit 0227203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/html/pipeline/emoji_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def asset_path(name)
if context[:asset_path]
context[:asset_path].gsub(":file_name", "#{::CGI.escape(name)}.png")
else
"emoji/#{::CGI.escape(name)}.png"
File.join("emoji", "#{::CGI.escape(name)}.png")
end
end

Expand Down

0 comments on commit 0227203

Please sign in to comment.