Skip to content
Snippets Groups Projects
Commit c5b63047 authored by Prasad's avatar Prasad
Browse files

Fixed installation issue that cropped up due to site_URL check and redirection.

parent de16e2e9
No related branches found
No related tags found
No related merge requests found
......@@ -103,12 +103,13 @@ class Vtiger_WebUI extends Vtiger_EntryPoint {
// common utils api called, depend on this variable right now
$currentUser = $this->getLogin();
vglobal('current_user', $currentUser);
//check we are being connected to on the right host and protocol
global $site_URL;
if ((stripos($site_URL,$_SERVER['REQUEST_SCHEME']."://".$_SERVER['HTTP_HOST']) !== 0)){
header("Location: $site_URL",TRUE,301);
die();
}
// Check we are being connected to on the right host and protocol
global $site_URL;
if ($site_URL && (stripos($site_URL,$_SERVER['REQUEST_SCHEME']."://".$_SERVER['HTTP_HOST']) !== 0)){
header("Location: $site_URL",TRUE,301);
exit;
}
global $default_language;
vglobal('default_language', $default_language);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment