WordPress.org

Plugin Directory

Changeset 626304


Ignore:
Timestamp:
11/16/12 22:05:20 (17 months ago)
Author:
dllh
Message:

Tumblr Importer: Make sure we're urlencoding the callback url we pass along to Tumblr, as auth steps can fail otherwise.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tumblr-importer/branches/newapi/tumblr-importer.php

    r626222 r626304  
    161161        $this->authorize_url = add_query_arg(array( 
    162162            'oauth_token' => $this->request_tokens ['oauth_token'],  
    163             'oauth_callback' => self_admin_url('admin.php?import=tumblr'), 
     163            'oauth_callback' => urlencode( self_admin_url('admin.php?import=tumblr') ), 
    164164            ), 'http://www.tumblr.com/oauth/authorize'); 
    165165 
     
    678678        $url = 'http://www.tumblr.com/oauth/request_token'; 
    679679      
    680         $params = array('oauth_callback' => self_admin_url('admin.php?import=tumblr'), 
     680        $params = array('oauth_callback' => urlencode( self_admin_url('admin.php?import=tumblr') ), 
    681681                'oauth_consumer_key' => $this->consumerkey, 
    682682                "oauth_version" => "1.0", 
Note: See TracChangeset for help on using the changeset viewer.