mirror of
git://develop.git.wordpress.org/
synced 2025-04-08 06:02:41 +02:00
Make a comment clearer (without implying inversed logic) and fix a typo.
see #31645. git-svn-id: https://develop.svn.wordpress.org/trunk@31837 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f2aa089166
commit
71aa4b15f6
@ -322,10 +322,10 @@ class WP_Press_This {
|
||||
|
||||
// HTTP 1.1 allows 8000 chars but the "de-facto" standard supported in all current browsers is 2048.
|
||||
if ( strlen( $url ) > 2048 ) {
|
||||
return ''; // Return empty rather than a trunacted/invalid URL
|
||||
return ''; // Return empty rather than a truncated/invalid URL
|
||||
}
|
||||
|
||||
// Does it look like an URL?
|
||||
// Does not look like an URL.
|
||||
if ( ! preg_match( '/^([!#$&-;=?-\[\]_a-z~]|%[0-9a-fA-F]{2})+$/', $url ) ) {
|
||||
return '';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user