Revision #4 has been created by qiang on Oct 20, 2012, 11:16:21 AM with the memo:
Fixed typo
« previous (#3) next (#5) »
Changes
Title
unchanged
URL management in secure and nonsecure pages
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
URL
Content
changed
[...]
$secureRoute = $this->isSecureRoute($route);
$sslRequest = $request->isSecureConnection;
if ($secureRoute !== $sslRequest) {
$hostInfo = $secureRoute ? $this->secureHostInfo : $this->hostInfo;
if ((strpos($hostInfo, 'https') === 0) xor $sslRequest) {
$request->redirect($hostInfo . DIRECTORY_SEPARATOR . $route$request->url, true, 301);
}
}
return $route;
}[...]