Changeset 26555 for extensions/oAuth/include/hybridauth/Hybrid/Auth.php
- Timestamp:
- Jan 9, 2014, 6:11:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/oAuth/include/hybridauth/Hybrid/Auth.php
r20293 r26555 15 15 class Hybrid_Auth 16 16 { 17 public static $version = "2.1. 1-dev";17 public static $version = "2.1.2"; 18 18 19 19 public static $config = array(); … … 250 250 $params = Hybrid_Auth::storage()->get( "hauth_session.$providerId.id_provider_params" ); 251 251 252 Hybrid_Logger::debug( "Hybrid_Auth::setup( $providerId ), no params given. Trying to get the s tored for this provider.", $params );252 Hybrid_Logger::debug( "Hybrid_Auth::setup( $providerId ), no params given. Trying to get the sotred for this provider.", $params ); 253 253 } 254 254 … … 387 387 388 388 // use port if non default 389 $url .= 390 isset( $_SERVER['SERVER_PORT'] ) 391 &&( ($protocol === 'http://' && $_SERVER['SERVER_PORT'] != 80) || ($protocol === 'https://' && $_SERVER['SERVER_PORT'] != 443) ) 392 ? ':' . $_SERVER['SERVER_PORT'] 393 : ''; 389 if( isset( $_SERVER['SERVER_PORT'] ) && strpos( $url, ':'.$_SERVER['SERVER_PORT'] ) === FALSE ) { 390 $url .= ($protocol === 'http://' && $_SERVER['SERVER_PORT'] != 80 && !isset( $_SERVER['HTTP_X_FORWARDED_PROTO'])) 391 || ($protocol === 'https://' && $_SERVER['SERVER_PORT'] != 443 && !isset( $_SERVER['HTTP_X_FORWARDED_PROTO'])) 392 ? ':' . $_SERVER['SERVER_PORT'] 393 : ''; 394 } 394 395 395 396 if( $request_uri ){
Note: See TracChangeset
for help on using the changeset viewer.