Sanitize Theme URI and Author URI in WP_Theme with esc_url_raw. Escape with esc_url on display. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20233 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c6043b2fa2
commit
cfb4179f87
@ -579,7 +579,7 @@ final class WP_Theme implements ArrayAccess {
|
||||
break;
|
||||
case 'ThemeURI' :
|
||||
case 'AuthorURI' :
|
||||
$value = esc_url( $value );
|
||||
$value = esc_url_raw( $value );
|
||||
break;
|
||||
case 'Tags' :
|
||||
$value = array_filter( array_map( 'trim', explode( ',', strip_tags( $value ) ) ) );
|
||||
@ -627,6 +627,10 @@ final class WP_Theme implements ArrayAccess {
|
||||
}
|
||||
$value = implode( $comma, $value );
|
||||
break;
|
||||
case 'ThemeURI' :
|
||||
case 'AuthorURI' :
|
||||
$value = esc_url( $value );
|
||||
break;
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
Loading…
Reference in New Issue
Block a user