Closed kkmuffme closed 3 years ago
False positive
for ( $i = 1; $i <= 10; $i++ ) { ?> <option value="<?php echo esc_attr( $i ); ?>" <?php echo ( $filter_importance === $i ) ? 'selected' : ''; ?> > >=<?php echo esc_html( $i ); ?> </option> <?php } ?>
WordPressVIPMinimum.Security.ProperEscapingFunction.htmlAttrNotByEscHTML for >=<?php echo esc_html( $i ); ?>
>=<?php echo esc_html( $i ); ?>
Use php -v and composer show to get versions.
php -v
composer show
master
develop
This should be fixed by PR #681. Testing appreciated.
Bug Description
False positive
Minimal Code Snippet
Error Code
WordPressVIPMinimum.Security.ProperEscapingFunction.htmlAttrNotByEscHTML for
>=<?php echo esc_html( $i ); ?>
Environment
Use
php -v
andcomposer show
to get versions.Tested Against
master
branch?master
branch of VIPCS.develop
branch of VIPCS.