Changeset 33064
- Timestamp:
- 07/03/2015 02:27:11 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/about.php
r32636 r33064 42 42 43 43 <div class="headline-feature feature-video"> 44 <embed type="application/x-shockwave-flash" src="https://v0.wordpress.com/player.swf?v=1.04" width="1000" height="560" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true" flashvars="guid=e9kH4FzP&isDynamicSeeking=true"></embed>44 <iframe width="560" height="315" src="https://www.youtube.com/embed/LCZ-cxfxzvk" frameborder="0" allowfullscreen></iframe> 45 45 </div> 46 46 -
trunk/src/wp-includes/formatting.php
r33027 r33064 3160 3160 return $url; 3161 3161 $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$\|*\'()\\x80-\\xff]|i', '', $url); 3162 $strip = array('%0d', '%0a', '%0D', '%0A'); 3163 $url = _deep_replace($strip, $url); 3162 if ( 0 !== stripos( $url, 'mailto:' ) ) { 3163 $strip = array('%0d', '%0a', '%0D', '%0A'); 3164 $url = _deep_replace($strip, $url); 3165 } 3164 3166 $url = str_replace(';//', '://', $url); 3165 3167 /* If the URL doesn't appear to contain a scheme, we -
trunk/tests/phpunit/tests/formatting/EscUrl.php
r30514 r33064 69 69 $this->assertEquals( '//example.com/foo?foo=abc:def', esc_url( '//example.com/foo?foo=abc:def' ) ); 70 70 } 71 72 /** 73 * @ticket 31632 74 */ 75 function test_mailto_with_newline() { 76 $body = <<<EOT 77 Hi there, 78 79 I thought you might want to sign up for this newsletter 80 EOT; 81 $email_link = 'mailto:?body=' . rawurlencode( $body ); 82 $email_link = esc_url( $email_link ); 83 $this->assertEquals( 'mailto:?body=Hi%20there%2C%0A%0AI%20thought%20you%20might%20want%20to%20sign%20up%20for%20this%20newsletter', $email_link ); 84 } 85 /** 86 * @ticket 31632 87 */ 88 function test_mailto_in_http_url_with_newline() { 89 $body = <<<EOT 90 Hi there, 91 92 I thought you might want to sign up for this newsletter 93 EOT; 94 $email_link = 'http://example.com/mailto:?body=' . rawurlencode( $body ); 95 $email_link = esc_url( $email_link ); 96 $this->assertEquals( 'http://example.com/mailto:?body=Hi%20there%2CI%20thought%20you%20might%20want%20to%20sign%20up%20for%20this%20newsletter', $email_link ); 97 } 98 71 99 }
Note: See TracChangeset
for help on using the changeset viewer.