]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/message.rb
Merge remote-tracking branch 'upstream/pull/4367'
[rails.git] / app / models / message.rb
index 0068bc3de504ee2d7e380cc2641b4ae1889082ba..7c12769d3a3e39f081caeb16dd0417a858a0ddc2 100644 (file)
@@ -63,6 +63,6 @@ class Message < ApplicationRecord
     sha256 = Digest::SHA256.new
     sha256 << Rails.application.key_generator.generate_key("openstreetmap/message")
     sha256 << id.to_s
-    sha256.base64digest[0, 8]
+    Base64.urlsafe_encode64(sha256.digest)[0, 8]
   end
 end