]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/oauth2_verifier.rb
Fix rubocop warnings
[rails.git] / app / models / oauth2_verifier.rb
index a404d0c7a872c6d1cb8673cafdc3ea3feb792f4f..1568cac998dd93e191a58821c4949ee6b6e529cb 100644 (file)
@@ -21,7 +21,7 @@ class Oauth2Verifier < OauthToken
 
   def to_query
     q = "code=#{token}"
-    q << "&state=#{URI.escape(state)}" if @state
+    q << "&state=#{CGI.escape(state)}" if @state
     q
   end