Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18149, comment 49


Ignore:
Timestamp:
08/25/2013 09:18:37 PM (12 years ago)
Author:
iseulde
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18149, comment 49

    initial v1  
    11Good idea, then we could match links starting with a dot as well.
    22So if it doesn't match `'^([a-z]+:|#|\\?|\\.|\\/)'`, add the current protocol.
    3 And if anyone want to link to `page`, they should use `./page` instead.
     3And if anyone wants to link to `page`, they should use `./page` instead.
    44The only thing that goes through now are links with a port number, so not sure if it's best to check against `[a-z]+` or whitelisted protocols.