CLI is no availabe in stable4
This commit is contained in:
parent
d3bb01b598
commit
5c9325bbe0
|
@ -381,13 +381,11 @@ class OC{
|
||||||
$server=OC_Helper::serverHost();
|
$server=OC_Helper::serverHost();
|
||||||
$serverhost=parse_url($server);
|
$serverhost=parse_url($server);
|
||||||
if(isset($serverhost['host'])) $serverhost=$serverhost['host']; else $serverhost='';
|
if(isset($serverhost['host'])) $serverhost=$serverhost['host']; else $serverhost='';
|
||||||
if(!self::$CLI){
|
|
||||||
if(($_SERVER['REQUEST_METHOD']=='POST') and ($refererhost<>$serverhost)) {
|
if(($_SERVER['REQUEST_METHOD']=='POST') and ($refererhost<>$serverhost)) {
|
||||||
$url = OC_Helper::serverProtocol().'://'.$server.OC::$WEBROOT.'/index.php';
|
$url = OC_Helper::serverProtocol().'://'.$server.OC::$WEBROOT.'/index.php';
|
||||||
header("Location: $url");
|
header("Location: $url");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
self::initSession();
|
self::initSession();
|
||||||
self::initTemplateEngine();
|
self::initTemplateEngine();
|
||||||
|
|
Loading…
Reference in New Issue