summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-06-05 14:10:50 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-06-05 14:10:50 +0200
commit5c9325bbe0e6a79be302f96076c5ee77df09ac70 (patch)
treeac25c2ffdd0fe1ee9f193ab40a1aa090f4e4b2ba /lib
parentd3bb01b5983a8778e2fa844fda0a5a4f71659f47 (diff)
downloadnextcloud-server-5c9325bbe0e6a79be302f96076c5ee77df09ac70.tar.gz
nextcloud-server-5c9325bbe0e6a79be302f96076c5ee77df09ac70.zip
CLI is no availabe in stable4
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/base.php b/lib/base.php
index 9fc7d0dae8f..2052be68255 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -381,13 +381,11 @@ class OC{
$server=OC_Helper::serverHost();
$serverhost=parse_url($server);
if(isset($serverhost['host'])) $serverhost=$serverhost['host']; else $serverhost='';
- if(!self::$CLI){
- if(($_SERVER['REQUEST_METHOD']=='POST') and ($refererhost<>$serverhost)) {
- $url = OC_Helper::serverProtocol().'://'.$server.OC::$WEBROOT.'/index.php';
- header("Location: $url");
- exit();
- }
- }
+ if(($_SERVER['REQUEST_METHOD']=='POST') and ($refererhost<>$serverhost)) {
+ $url = OC_Helper::serverProtocol().'://'.$server.OC::$WEBROOT.'/index.php';
+ header("Location: $url");
+ exit();
+ }
self::initSession();
self::initTemplateEngine();