Skip to content

Commit ecdc10c

Browse files
authored
Merge pull request #848 from Automattic/feature/security-phpfilterfunctions-change-condition
2 parents de77765 + 3f99877 commit ecdc10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressVIPMinimum/Sniffs/Security/PHPFilterFunctionsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function process_parameters( $stackPtr, $group_name, $matched_content, $p
110110

111111
// Error codes should probably be made more descriptive, but that would be a BC-break.
112112
$error_code = 'MissingSecondParameter';
113-
if ( $matched_content === 'filter_input' ) {
113+
if ( $param_position === 3 ) {
114114
$error_code = 'MissingThirdParameter';
115115
}
116116

0 commit comments

Comments
 (0)