]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/request_token.rb
Fix issues with bogus % encoded sequences in URLs
[rails.git] / app / models / request_token.rb
index 0d55375ff4418f6a37a034f793efa27322fe35c2..a1b30abb30d76c9a51c01b1083bbb0ad12335d1b 100644 (file)
@@ -17,7 +17,7 @@ class RequestToken < OauthToken
       params = { :user => user, :client_application => client_application }
       # copy the permissions from the authorised request token to the access token
       client_application.permissions.each do |p|
-        params[p] = read_attribute(p)
+        params[p] = self[p]
       end
 
       access_token = AccessToken.create(params)
@@ -35,7 +35,7 @@ class RequestToken < OauthToken
   end
 
   def oob?
-    callback_url.nil? || callback_url.downcase == 'oob'
+    callback_url.nil? || callback_url.downcase == "oob"
   end
 
   def oauth10?