Provide token for hostname

Boobaa - October 20, 2009 - 15:26
Project:Link
Version:6.x-2.6
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

That is, the string between the first occurence of '//' and the first occurence of '/' thereafter. The attached patch provides this.

AttachmentSize
link-host.patch673 bytes

#1

Boobaa - October 20, 2009 - 16:21

Reworked the patch to be more simple and (hopefully) even a bit faster.

AttachmentSize
link-host-609560-1.patch 608 bytes

#2

Boobaa - October 20, 2009 - 16:29

Oh my goodness, seems like there are still folks out there who use php4... Patch updated accordingly.

AttachmentSize
link-host-609560-2.patch 622 bytes

#3

alippai - October 20, 2009 - 16:38
Status:needs review» reviewed & tested by the community

checked this patch, 3 simple lines, works as expected

 
 

Drupal is a registered trademark of Dries Buytaert.