Link Manager: Use a strict in_array() check in wp-links-opml.php.
Props dkarfa. Fixes #49106. Built from https://develop.svn.wordpress.org/trunk@47033 git-svn-id: http://core.svn.wordpress.org/trunk@46833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -18,7 +18,7 @@ header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true
|
||||
$link_cat = '';
|
||||
if ( ! empty( $_GET['link_cat'] ) ) {
|
||||
$link_cat = $_GET['link_cat'];
|
||||
if ( ! in_array( $link_cat, array( 'all', '0' ) ) ) {
|
||||
if ( ! in_array( $link_cat, array( 'all', '0' ), true ) ) {
|
||||
$link_cat = absint( (string) urldecode( $link_cat ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user