Make WordPress Core

Changeset 1296 in tests


Ignore:
Timestamp:
06/21/2013 03:26:22 PM (12 years ago)
Author:
markjaquith
Message:

Add a test for protocol-relative URLs that have a colon, for #21974

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/formatting/EscUrl.php

    r1184 r1296  
    7474        $this->assertEquals( 'http://[::DEAD:BEEF:DEAD:BEEF:DEAD:BEEF:DEAD:BEEF]', esc_url( 'http://[::DEAD:BEEF:DEAD:BEEF:DEAD:BEEF:DEAD:BEEF]' ) );
    7575    }
     76
     77    /**
     78     * @ticket 21974
     79     */
     80    function test_protocol_relative_with_colon() {
     81        $this->assertEquals( '//example.com/foo?foo=abc:def', esc_url( '//example.com/foo?foo=abc:def' ) );
     82    }
    7683}
Note: See TracChangeset for help on using the changeset viewer.