[drupal-devel] [feature] Handle external URLs

chx drupal-devel at drupal.org
Sat Apr 2 01:13:09 UTC 2005


Issue status update for http://drupal.org/node/19842

 Project:      Drupal
 Version:      cvs
 Component:    base system
 Category:     feature requests
 Priority:     normal
 Assigned to:  chx
 Reported by:  chx
 Updated by:   chx
 Status:       patch
 Attachment:   http://drupal.org/files/issues/externalurl_1.patch (480 bytes)

Oh, bad patch version :( again :(


chx



Previous comments:
------------------------------------------------------------------------

April 2, 2005 - 00:50 : chx

Attachment: http://drupal.org/files/issues/externalurl.patch (448 bytes)

This very simple patch lets you add external URLs to your menu or
wherever, 'cos I patched url() itself.
Please consider for 4.6.


------------------------------------------------------------------------

April 2, 2005 - 01:02 : Morbus Iff

Too naive, IMO. Needs ftp, nntp, irc, aim, blah blah blah.


------------------------------------------------------------------------

April 2, 2005 - 01:02 : Morbus Iff

Oh, and mailto.


------------------------------------------------------------------------

April 2, 2005 - 02:11 : chx

Attachment: http://drupal.org/files/issues/externalurl_0.patch (571 bytes)

and e2dk or whatever. A path is external if a) it begins with mailto: b)
method: followed by a slash. method is loosely defined as a sequence of
any characters but slash. This will evaluate  a Drupal path
foor:bar/this/that external. However  trackerpage/http://whatever has a
slash before the : so it will be an internal URL.





More information about the drupal-devel mailing list