// Shall we encrypt the cookie?
if ($encrypted === true) {
+ // Unsupported at the moment
+ $this->partialStub('Encryption is unsupported at the moment.');
} // END - if
// For slow browsers set the cookie array element first
// Now construct the full header
$cookieString = $cookieName . '=' . $cookieValue . '; ';
- $cookieString .= "expires=" . date("D, d-F-Y H:i:s", $expires) . " GMT";
+ $cookieString .= 'expires=' . date('D, d-F-Y H:i:s', $expires) . ' GMT';
// $cookieString .= "; path=".$path."; domain=".$domain;
// Set the cookie as a header
$this->getTemplateInstance()->assignApplicationData($this->getApplicationInstance());
// Get the url from config
- $url = $this->getConfigInstance()->getConfigEntry($configEntry . "_url");
+ $url = $this->getConfigInstance()->getConfigEntry($configEntry . '_url');
// Compile the URL
$url = $this->getTemplateInstance()->compileRawCode($url);
} // END - if
// Add redirect header
- $this->addHeader('Location', $url);
+ $this->addHeader('Location', str_replace('&', '&', $url));
// Set correct response status
$this->setResponseStatus('301 Moved Permanently');