lib/amee/connection.rb in amee-4.2.0 vs lib/amee/connection.rb in amee-4.3.0

- old
+ new

@@ -296,10 +296,11 @@ end def cache_key(path) # We have to make sure cache keys don't get too long for the filesystem, # so we cut them off if they're too long and add a digest for uniqueness. - newpath = (path.length < 255) ? path : path.first(192)+Digest::MD5.hexdigest(path) + newpath = path.gsub(/[^0-9a-z\/]/i, '') + newpath = (newpath.length < 255) ? newpath : newpath.first(192)+Digest::MD5.hexdigest(newpath) (@server+newpath) end public