]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/request_token.rb
Merge remote-tracking branch 'openstreetmap/pull/1437'
[rails.git] / app / models / request_token.rb
index a1b30abb30d76c9a51c01b1083bbb0ad12335d1b..c0f0194860f0117fcf71181301bfb2c53385a849 100644 (file)
@@ -35,7 +35,7 @@ class RequestToken < OauthToken
   end
 
   def oob?
-    callback_url.nil? || callback_url.downcase == "oob"
+    callback_url.nil? || callback_url.casecmp("oob").zero?
   end
 
   def oauth10?