[drupal-devel] [bug] url() does not obey $absolute parameter properly

crunchywelch drupal-devel at drupal.org
Tue Aug 9 03:52:34 UTC 2005


Issue status update for 
http://drupal.org/node/28491
Post a follow up: 
http://drupal.org/project/comments/add/28491

 Project:      Drupal
 Version:      4.6.0
 Component:    base system
 Category:     bug reports
 Priority:     critical
 Assigned to:  crunchywelch
 Reported by:  crunchywelch
 Updated by:   crunchywelch
 Status:       patch (code needs review)

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.




crunchywelch




More information about the drupal-devel mailing list