mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 2234 if access http protocol instead of https protocol,
redirect to https (only https setting action and https option on) git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11054 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e5a329901f
commit
c059da3138
2 changed files with 41 additions and 4 deletions
|
|
@ -60,6 +60,15 @@
|
|||
exit;
|
||||
}
|
||||
|
||||
if(isset($this->act) && substr($this->act, 0, 4) == 'disp')
|
||||
{
|
||||
if(Context::get('_use_ssl') == 'optional' && Context::isExistsSSLAction($this->act) && $_SERVER['HTTPS'] != 'on')
|
||||
{
|
||||
header('location:https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// execute addon (before module initialization)
|
||||
$called_position = 'before_module_init';
|
||||
$oAddonController = &getController('addon');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue