Changeset 31837
- Timestamp:
- 03/20/2015 12:44:21 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-press-this.php
r31836 r31837 323 323 // HTTP 1.1 allows 8000 chars but the "de-facto" standard supported in all current browsers is 2048. 324 324 if ( strlen( $url ) > 2048 ) { 325 return ''; // Return empty rather than a trun acted/invalid URL326 } 327 328 // Does it look like an URL?325 return ''; // Return empty rather than a truncated/invalid URL 326 } 327 328 // Does not look like an URL. 329 329 if ( ! preg_match( '/^([!#$&-;=?-\[\]_a-z~]|%[0-9a-fA-F]{2})+$/', $url ) ) { 330 330 return '';
Note: See TracChangeset
for help on using the changeset viewer.