mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Do not redirect to SSL when invoked on the CLI
This commit is contained in:
parent
eec75ba372
commit
51d0aa5e5e
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ class Context
|
|||
}
|
||||
|
||||
// Redirect to SSL if the current domain always uses SSL.
|
||||
if ($site_module_info->security === 'always' && !RX_SSL)
|
||||
if ($site_module_info->security === 'always' && !RX_SSL && PHP_SAPI !== 'cli')
|
||||
{
|
||||
$ssl_url = self::getDefaultUrl($site_module_info) . RX_REQUEST_URL;
|
||||
self::setCacheControl(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue