Closed (works as designed)
Project:
Drupal core
Version:
4.6.0
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
9 Aug 2005 at 03:52 UTC
Updated:
9 Aug 2005 at 13:34 UTC
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
Comment #1
gábor hojtsyNope! $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.