diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-06 22:16:45 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-07 20:43:00 +0200 |
commit | 99ce7ba1df52334f11c6b97c3f24d0ed31c8f6d0 (patch) | |
tree | df8cd29a5e7673ae3db2148cf01286c28dc8a725 /lib/base.php | |
parent | c4f1a1de5b5f9dda969a3b3872eea5628d8ef9e2 (diff) | |
download | nextcloud-server-99ce7ba1df52334f11c6b97c3f24d0ed31c8f6d0.tar.gz nextcloud-server-99ce7ba1df52334f11c6b97c3f24d0ed31c8f6d0.zip |
Move serverHost and serverProtocol functions to OC_Request
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php index 8f7544de1f6..c3887dec2f8 100644 --- a/lib/base.php +++ b/lib/base.php @@ -185,8 +185,8 @@ class OC{ // redirect to https site if configured if( OC_Config::getValue( "forcessl", false )){ ini_set("session.cookie_secure", "on"); - if(OC_Helper::serverProtocol()<>'https' and !OC::$CLI) { - $url = "https://". OC_Helper::serverHost() . $_SERVER['REQUEST_URI']; + if(OC_Request::serverProtocol()<>'https' and !OC::$CLI) { + $url = "https://". OC_Request::serverHost() . $_SERVER['REQUEST_URI']; header("Location: $url"); exit(); } |