PluginProbe
Passster – Password Protect Pages and Content / 4.3.16
Passster – Password Protect Pages and Content v4.3.16
4.3.16 4.3.15 4.3.14 4.3.12 4.3.13 4.3.11 4.3.10 4.3.9 4.3.8 4.3.7 4.3.6 4.3.5 trunk 3.5.4 3.5.5.2 3.5.5.8 3.5.5.9 4.0 4.1.4 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 4.2.15 All 48 releases
← All changes | inc/class-ps-conditional.php +1 -1 4.3.54.3.16 View file →
@@ -51,9 +51,9 @@
51 51 */
52 52 public static function is_valid_password( string $input, array $atts ) : bool {
53 53 // password.
54 54 if ( !empty( $atts['password'] ) ) {
55 - $hash = hash_hmac( 'sha256', esc_html( $atts['password'] ), get_option( 'passster_secure_key' ) );
55 + $hash = hash_hmac( 'sha256', wp_unslash( $atts['password'] ), get_option( 'passster_secure_key' ) );
56 56 if ( hash_equals( $hash, $input ) ) {
57 57 return true;
58 58 }
59 59 }