Created
January 15, 2012 17:18
-
-
Save robbanl/1616491 to your computer and use it in GitHub Desktop.
Fix for problems with CodeIgniter and "facebook-ignited"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$url = parse_url($_SERVER['REQUEST_URI']); | |
if (isset($url['query'])) { | |
parse_str($url['query'], $params); | |
if (isset($params['session'])) { | |
$_GET['session'] = $params['session']; | |
$_REQUEST['session'] = $params['session']; | |
} | |
foreach ($params as $key => $value) { | |
$_GET[$key] = $value; | |
$_REQUEST[$key] = $value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment