Skip to content

Instantly share code, notes, and snippets.

@robbanl
Created January 15, 2012 17:18
Show Gist options
  • Save robbanl/1616491 to your computer and use it in GitHub Desktop.
Save robbanl/1616491 to your computer and use it in GitHub Desktop.
Fix for problems with CodeIgniter and "facebook-ignited"
$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