From adb9483563d9c7f6e017a2ce19c03bcb2fa98049 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 3 Jan 2020 01:12:13 +0000 Subject: [PATCH] Link Manager: Use a strict `in_array()` check in `wp-links-opml.php`. Props dkarfa. Fixes #49106. git-svn-id: https://develop.svn.wordpress.org/trunk@47033 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-links-opml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-links-opml.php b/src/wp-links-opml.php index 12d35b008a..2bc214185d 100644 --- a/src/wp-links-opml.php +++ b/src/wp-links-opml.php @@ -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 ) ); } }