The order of operation inside url() changed in D7, meaning that hook_domainpath() needs a refactor.
And a patch.
This affects domain_get_uri() as well.
Follow-up for #3.
Newer patches, against HEAD and 7--2.
New patches, which incorporate #921984: Fatal error: undefined function filter_xss_bad_protocol().
Fixed with a slight optimization.
Automatically closed -- issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.