lib/dragonfly/utils.rb in dragonfly-0.9.14 vs lib/dragonfly/utils.rb in dragonfly-0.9.15
- old
+ new
@@ -20,10 +20,10 @@
new_hash
end
end
def uri_escape_segment(string)
- URI.escape(string).sub('/', '%2F')
+ Rack::Utils.escape_path(string)
end
def uri_unescape(string)
URI.unescape(string)
end