]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for ticket 2756 - Calls to OAuth endpoints are redirected to the
authorZach Copley <zach@status.net>
Wed, 22 Sep 2010 23:30:50 +0000 (23:30 +0000)
committerZach Copley <zach@status.net>
Wed, 22 Sep 2010 23:30:50 +0000 (23:30 +0000)
login page when a site is in private mode

actions/apioauthauthorize.php
lib/router.php

index e7c6f376116d636bdd42c05d55ecb6b00c306739..c2fbbcdd8739961a152171526e4756ca4122ccab 100644 (file)
@@ -270,7 +270,7 @@ class ApiOauthAuthorizeAction extends ApiOauthAction
         $this->elementStart('form', array('method' => 'post',
                                           'id' => 'form_apioauthauthorize',
                                           'class' => 'form_settings',
-                                          'action' => common_local_url('apioauthauthorize')));
+                                          'action' => common_local_url('ApiOauthAuthorize')));
         $this->elementStart('fieldset');
         $this->element('legend', array('id' => 'apioauthauthorize_allowdeny'),
                                  _('Allow or deny access'));
index fb5a3c7c364c6c16a3d6873cb791ff7c7a9e8550..00b2993734fe90a647b34f639ab603c51f256fce 100644 (file)
@@ -488,19 +488,19 @@ class Router
             // Social graph
 
             $m->connect('api/friends/ids/:id.:format',
-                        array('action' => 'apiuserfriends',
+                        array('action' => 'ApiUserFriends',
                               'ids_only' => true));
 
             $m->connect('api/followers/ids/:id.:format',
-                        array('action' => 'apiuserfollowers',
+                        array('action' => 'ApiUserFollowers',
                               'ids_only' => true));
 
             $m->connect('api/friends/ids.:format',
-                        array('action' => 'apiuserfriends',
+                        array('action' => 'ApiUserFriends',
                               'ids_only' => true));
 
             $m->connect('api/followers/ids.:format',
-                        array('action' => 'apiuserfollowers',
+                        array('action' => 'ApiUserFollowers',
                               'ids_only' => true));
 
             // account
@@ -672,13 +672,13 @@ class Router
             $m->connect('api/trends.json', array('action' => 'ApiTrends'));
 
             $m->connect('api/oauth/request_token',
-                        array('action' => 'apioauthrequesttoken'));
+                        array('action' => 'ApiOauthRequestToken'));
 
             $m->connect('api/oauth/access_token',
-                        array('action' => 'apioauthaccesstoken'));
+                        array('action' => 'ApiOauthAccessToken'));
 
             $m->connect('api/oauth/authorize',
-                        array('action' => 'apioauthauthorize'));
+                        array('action' => 'ApiOauthAuthorize'));
 
             // Admin