Jump to content


BUG: LiveZilla 4.2.0.1 _lib\functions.global.inc.php

bug functions.global.inc.php 4.2.0.1

2 replies to this topic

#1 FDisk

    Advanced Member

  • Members
  • PipPipPip
  • 75 posts

Posted 10 October 2012 - 11:31 AM

There is an BUG in function defineURL

function defineURL($_file)
{
global $CONFIG;
if(!empty($_SERVER['REQUEST_URI']) && !empty($_CONFIG["gl_root"]))
{
  $parts = parse_url($_SERVER['REQUEST_URI']);
  define("LIVEZILLA_URL",getScheme() . $CONFIG["gl_host"] . str_replace($_file,"",$parts["path"]));
}
else
  define("LIVEZILLA_URL",getScheme() . $_SERVER["HTTP_HOST"] . str_replace($_file,"",htmlentities($_SERVER["PHP_SELF"],ENT_QUOTES,"UTF-8")));
}

There is a mistype: $_CONFIG - must be $CONFIG

function defineURL($_file)
{
global $CONFIG;
if(!empty($_SERVER['REQUEST_URI']) && !empty($CONFIG["gl_root"]))
{
  $parts = parse_url($_SERVER['REQUEST_URI']);
  define("LIVEZILLA_URL",getScheme() . $CONFIG["gl_host"] . str_replace($_file,"",$parts["path"]));
}
else
  define("LIVEZILLA_URL",getScheme() . $_SERVER["HTTP_HOST"] . str_replace($_file,"",htmlentities($_SERVER["PHP_SELF"],ENT_QUOTES,"UTF-8")));
}


#2 Patrick Keil

    Administrator

  • Administrators
  • 602 posts
  • LocationSingen, Germany

Posted 10 October 2012 - 11:35 AM

Thanks for reporting.

However, this is not a bug, $_CONFIG represents the configuration of the root website, $CONFIG of the multiserver sub site.

#3 FDisk

    Advanced Member

  • Members
  • PipPipPip
  • 75 posts

Posted 10 October 2012 - 12:16 PM

Thanks.
We was trying to setup a multiserver configuration.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users