1
jlittle
xoopkernel.php bug
  • 2010/3/18 23:28

  • jlittle

  • Just popping in

  • Posts: 2

  • Since: 2010/3/18


In tracing thru the code looking for another problem I came upon what looks like an issue where in the function xos_kernel_Xoops2 the XOOPS and lib paths were not set correctly because there was no slash in front of the "browse.php"

Orig code:
function xos_kernel_Xoops2()
{
$this->paths['XOOPS'] = array(XOOPS_PATH, XOOPS_URL . 'browse.php');
$this->paths['www'] = array(XOOPS_ROOT_PATH, XOOPS_URL);
$this->paths['var'] = array(XOOPS_VAR_PATH, null);
$this->paths['lib'] = array(XOOPS_PATH, XOOPS_URL . 'browse.php');
$this->paths['modules'] = array(XOOPS_ROOT_PATH . '/modules', XOOPS_URL . '/modules');
$this->paths['themes'] = array(XOOPS_ROOT_PATH . '/themes', XOOPS_URL . '/themes');
}

I saw that since the XOOPS_URL had no trailing backslash that it concatenated the browse to the end of the XOOPS_URL causing an incorrect path.

Everywhere else in the code a slash is used in front of the path or file name that is being concatenated to the XOOPS_URL variable.

Login

Who's Online

229 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 229


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits