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.
| Attachment | Size |
|---|---|
| link-host.patch | 673 bytes |

#1
Reworked the patch to be more simple and (hopefully) even a bit faster.
#2
Oh my goodness, seems like there are still folks out there who use php4... Patch updated accordingly.
#3
checked this patch, 3 simple lines, works as expected