summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-06 22:16:45 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-07 20:43:00 +0200
commit99ce7ba1df52334f11c6b97c3f24d0ed31c8f6d0 (patch)
treedf8cd29a5e7673ae3db2148cf01286c28dc8a725 /lib/base.php
parentc4f1a1de5b5f9dda969a3b3872eea5628d8ef9e2 (diff)
downloadnextcloud-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.php4
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();
}