in common.inc the url() function inverts the treatment of the $absolute parameter on line 1467 in v4.6:

$base = ($absolute ? $base_url .'/' : '');

This prepends the $base_url to the path if $absolute is TRUE, which is inverted logic, it should be:

$base = ($absolute ? '' : $base_url .'/');

This is still a problem in cvs, but I dont have the line number. I can submit a proper patch if needed.

Comments

gábor hojtsy’s picture

Status: Needs review » Closed (works as designed)

Nope! $absolute == TRUE means that the output of the function will be an absolute URL, not that the input is an absolute URL. See the documentation.