diff --git a/lib/WPStrava/Settings.php b/lib/WPStrava/Settings.php index 8e42e7a..4342ccc 100644 --- a/lib/WPStrava/Settings.php +++ b/lib/WPStrava/Settings.php @@ -43,7 +43,7 @@ public function maybe_oauth( $value ) { $client_id = $_POST['strava_client_id']; $client_secret = $_POST['strava_client_secret']; - $redirect = admin_url( "options-general.php?page={$this->page_name}" ); + $redirect = urlencode( admin_url( "options-general.php?page={$this->page_name}" ) ); $url = "https://www.strava.com/oauth/authorize?client_id={$client_id}&response_type=code&redirect_uri={$redirect}&approval_prompt=force"; wp_redirect( $url ); exit(); diff --git a/readme.txt b/readme.txt index 15a6c8f..cd01a78 100755 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,11 @@ If your API key works with other Google Maps plugins but not WP Strava, you may == Changelog == += 1.5.1 = + +urlencode() redirect_uri so authentication works more consistently. + + = 1.5.0 = Added additional checks for abridged club data to avoid undefined index/property errors https://wordpress.org/support/topic/club-activities-bugs-strava/ @@ -81,10 +86,12 @@ Added composer with PSR-0 autoloader (will switch to PSR-4 once WP's PHP 5.2 req Moved files into appropriate place to support autoloader. Added WordPress-Extra coding standards rule definition to project + = 1.4.3 = Fix WPStrava_Activity class not found error. + = 1.4.2 = Better Club ID support. @@ -92,9 +99,12 @@ Refined cache clearing to include club IDs. Removed links to 'app.strava.com' Fixed unclosed href anchor on activity shortcode. + = 1.4.1 = + Fix array indices on map widget + = 1.4.0 = Added dlintott to contributors. @@ -107,6 +117,7 @@ Removed target="_blank" from hrefs for accessibility best practices. Added links from activity and route shortcodes to respective strava page. Removed all instances of extract(). + = 1.3.0 = Added [route] shortcode and start/finish https://github.com/cmanon/wp-strava/pull/10/ @@ -168,4 +179,3 @@ Added option to select unit of measurements on the widget. https://wordpress.org = 0.6 = Initial version. - diff --git a/wp-strava.php b/wp-strava.php index f33ff0d..9e53cbd 100755 --- a/wp-strava.php +++ b/wp-strava.php @@ -3,7 +3,7 @@ * Plugin Name: WP Strava * Plugin URI: https://wordpress.org/plugins/wp-strava/ * Description: Show your strava.com activity on your WordPress site. Some Icons are Copyright © Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 license. - * Version: 1.5.0 + * Version: 1.5.1-rc1 * Author: Carlos Santa Cruz, Justin Foell, Lance Willett, Daniel Lintott * License: GPL2 * Text Domain: wp-strava