Ticket #31645: 31645.patch
File 31645.patch, 879 bytes (added by , 10 years ago) |
---|
-
wp-admin/includes/class-wp-press-this.php
347 347 return ''; // Return empty rather than a trunacted/invalid URL 348 348 } 349 349 350 // Does it look like an URL?351 if ( ! preg_match( '/^([!#$&-;=?-\[\]_a-z~]|%[0-9a-fA-F]{2})+$/', $url ) ) {350 // Does it look like an absolute URL? 351 if ( '/' === $url[0] || ! preg_match( '/^([!#$&-;=?-\[\]_a-z~]|%[0-9a-fA-F]{2})+$/', $url ) ) { 352 352 return ''; 353 353 } 354 354 … … 995 995 } else if ( ! empty( $data['_meta']['description'] ) ) { 996 996 $text = $data['_meta']['description']; 997 997 } 998 if ( substr($text, -3, 3) == '...' || substr($text, -5, 5 == '[…]') ) { 999 $text = ''; 1000 } 998 1001 } 999 1002 1000 1003 $default_html = array(