Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #31645, comment 10


Ignore:
Timestamp:
03/17/2015 02:20:14 PM (10 years ago)
Author:
stephdau
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31645, comment 10

    initial v1  
    1 [attachment:31645.6.patch] will not work as is because `$url` goes through `esc_url_raw()` before being tested, which prepends `http://` to whatever value is passed to it... So `123.html` becomes `http://123.html/`, which then matches
    2 {{{
    3 if ( $url && strlen( $url ) > 2 && $this->domain && $url{0} === '/' && $url{1} !== '/' ) {
    4 }}}
     1[attachment:31645.6.patch] will not work as is because `$url` goes through `esc_url_raw()` before being tested, which prepends `http://` to whatever value is passed to it... So `123.html` becomes `http://123.html/`.