Skip to content

Commit

Permalink
Merge branch 'annuh-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
StorytellerCZ committed Oct 29, 2016
2 parents 337aff8 + 67f6d22 commit 0cffedb
Show file tree
Hide file tree
Showing 7 changed files with 295 additions and 6,126 deletions.
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -19,7 +19,8 @@
},
"require": {
"php": ">=5.2.0",
"ext-curl": "*"
"ext-curl": "*",
"facebook/graph-sdk": "^5.4"
},
"autoload": {
"psr-0": {
Expand Down
7 changes: 6 additions & 1 deletion hybridauth/Hybrid/Provider_Adapter.php
Expand Up @@ -168,7 +168,12 @@ function login() {
if ($this->id=="Live") {
$this->params["login_done"] = $HYBRID_AUTH_URL_BASE."live.php";
}


# Workaround to fix broken callback urls for the Facebook OAuth client
if ($this->adapter->useSafeUrls) {
$this->params['login_done'] = str_replace('hauth.done', 'hauth_done', $this->params['login_done']);
}

if (isset($this->params["hauth_return_to"])) {
Hybrid_Auth::storage()->set("hauth_session.{$this->id}.hauth_return_to", $this->params["hauth_return_to"]);
}
Expand Down
3 changes: 3 additions & 0 deletions hybridauth/Hybrid/Provider_Model.php
Expand Up @@ -64,6 +64,9 @@ abstract class Hybrid_Provider_Model {
*/
public $compressed = false;

/** @var bool $useSafeUrls Enable this to replace '.' with '_' characters in the callback urls */
public $useSafeUrls = false;

/**
* Common providers adapter constructor
*
Expand Down

0 comments on commit 0cffedb

Please sign in to comment.