mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
- Removed _setControllerId method from controller InfoCenter
- InfoCenter controller now uses setControllerId and getControllerId from FHC_Controller - Fixed URL query string character in method FHC_Controller->setControllerId
This commit is contained in:
@@ -46,7 +46,15 @@ class FHC_Controller extends CI_Controller
|
||||
{
|
||||
$this->_controllerId = uniqid(); // generate a unique id
|
||||
// Redirect to the same URL, but giving FHC_CONTROLLER_ID as HTTP GET parameter
|
||||
header(sprintf('Location: %s?%s=%s', $_SERVER['REQUEST_URI'], self::FHC_CONTROLLER_ID, $this->_controllerId));
|
||||
header(
|
||||
sprintf(
|
||||
'Location: %s%s%s=%s',
|
||||
$_SERVER['REQUEST_URI'],
|
||||
strpos($_SERVER['REQUEST_URI'], '?') === false ? '?' : '&', // place the corret character to divide parameters
|
||||
self::FHC_CONTROLLER_ID,
|
||||
$this->_controllerId
|
||||
)
|
||||
);
|
||||
exit; // terminate immediately the execution of this controller
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user