summaryrefslogtreecommitdiff
path: root/actions/updateprofile.php
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2009-03-08 08:45:32 +0100
committerAdrian Lang <mail@adrianlang.de>2009-03-11 10:27:54 +0100
commit1ba3ac9ee3f00472e0b7f8f25955967ab816a3fd (patch)
tree31d2d18debe6ffab5c0cd775919487701a1eee02 /actions/updateprofile.php
parent04a05ca236e0c61da2ddc4c8f93e2ba153466342 (diff)
Make OMB work if the configured domain name does not exclusively contain lower case letters.
If the configured domain is mixed-case OAuth throws invalidsignature errors. The current URL is part of the signated parts; since the consumer does not pass the current URL, the service has to get it itself and add it to the other OAuth params for signature rebuilding. OAuth.php uses $_SERVER for this, however, the domain is lcased in $_SERVER. Hence we pass the complete current URL as generated by common_local_url to OAuthRequest.
Diffstat (limited to 'actions/updateprofile.php')
-rw-r--r--actions/updateprofile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/updateprofile.php b/actions/updateprofile.php
index 7dc52fda9..08cb31ae0 100644
--- a/actions/updateprofile.php
+++ b/actions/updateprofile.php
@@ -29,7 +29,7 @@ class UpdateprofileAction extends Action
parent::handle($args);
try {
common_remove_magic_from_request();
- $req = OAuthRequest::from_request();
+ $req = OAuthRequest::from_request('POST', common_local_url('updateprofile'));
# Note: server-to-server function!
$server = omb_oauth_server();
list($consumer, $token) = $server->verify_request($req);