Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
base system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 May 2007 at 01:20 UTC
Updated:
19 Oct 2007 at 13:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
keith.smith commented(correcting title, I hope)
Comment #2
yched commentedRight :). "Negociation" is, well, french.
Comment #3
chx commentedJust because you ask Drupal to slap $base_path onto your Drupal path you surely still want to do language URL rewrites. What you do not want to rewrite is an external URL thrown at url().
Comment #4
chx commentedTHe second chunk was not needed.
Comment #5
gábor hojtsyYes, it seems like it was broken to check for the absolute flag, because there people ask url() to output an absolute URL. It does not say, that the actual "path" passed in was "absolute" = external. This surely needs to be tested with combinations of omitted language codes, domain name based setups, path prefix based setups and the like. In principal it looks like, so if testing shows this is finally right, then it is fine with me.
Comment #6
gábor hojtsyyched: can you test?
Comment #7
yched commentedWorks (tested with 'path prefix' negotiation - unable to test 'domain name' negotiation on my localhost :-) )
Comment #8
dries commentedmenu_path_is_external is not particularly fast and calling this for every url() is NOT a good idea. We should add an 'external' flag in addition to the 'absolute' flag. All too often, people think that absolute == external.
Comment #9
chx commentedRefactored. We already determine whether an URL is external or not, now that is called early and language_url_rewrite checks for that. I marked RTBC as there is no functionality change compared to the previous patch.
Comment #10
gábor hojtsy- Is it a good idea to allow bypassing filter_xss_bad_protocol() by providing the external flag from outside? I'd say that this code was there, so we can just use it as an internal check. (For security's shake)
- The first documentation line you added is badly indented.
Comment #11
chx commentedfxbp is only used for checking. security measures are taken by l in the form of a check_url. Spaces fixed.
Comment #12
dries commentedPatch looks good.
Oddly enough, the OpenID link already used 'external'? Also, should we add an external attribute to the php and syslog_conf links?
Comment #13
chx commentedcan we do that in a followup patch and get this in? :)
Comment #14
dries commentedI committed this patch, and changed the subject. Thanks for your help, chx.
Comment #15
gábor hojtsyDries committed the patch.
Comment #16
chx commentedFollowup patch as agreed above.
Comment #17
gábor hojtsyGreat, committed.
Comment #18
(not verified) commented