Version Description
- Uses
hash_equals()
to compare strings.
Download this release
Release Info
Developer | takayukister |
Plugin | Really Simple CAPTCHA |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.1
- license.txt +1 -1
- readme.txt +7 -10
- really-simple-captcha.php +3 -3
license.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
Really Simple CAPTCHA - WordPress Plugin, 2007-
|
2 |
Really Simple CAPTCHA is distributed under the terms of the GNU GPL
|
3 |
|
4 |
This program is free software; you can redistribute it and/or modify
|
1 |
+
Really Simple CAPTCHA - WordPress Plugin, 2007-2021 Takayuki Miyoshi
|
2 |
Really Simple CAPTCHA is distributed under the terms of the GNU GPL
|
3 |
|
4 |
This program is free software; you can redistribute it and/or modify
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: takayukister
|
3 |
Donate link: https://contactform7.com/donate/
|
4 |
Tags: captcha
|
5 |
-
Requires at least:
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag:
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -91,6 +91,10 @@ If you have any further questions, please submit them [to the support forum](htt
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
|
|
94 |
= 2.0.2 =
|
95 |
|
96 |
* "Stable tag" refers to trunk.
|
@@ -103,10 +107,3 @@ If you have any further questions, please submit them [to the support forum](htt
|
|
103 |
|
104 |
* Did some rewrite of the code following the coding standard.
|
105 |
* Updated the license file; added a section for bundled font files.
|
106 |
-
|
107 |
-
= 1.9 =
|
108 |
-
|
109 |
-
* Change the default file mode: 0644 for image and 0640 for answer.
|
110 |
-
* Add "Text Domain" field to the plugin header.
|
111 |
-
* Update bundled font: Gentium Basic 1.102.
|
112 |
-
* Add $max argument to cleanup() to prevent an endless file cleanup.
|
2 |
Contributors: takayukister
|
3 |
Donate link: https://contactform7.com/donate/
|
4 |
Tags: captcha
|
5 |
+
Requires at least: 5.5
|
6 |
+
Tested up to: 5.7
|
7 |
+
Stable tag: 2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
91 |
|
92 |
== Changelog ==
|
93 |
|
94 |
+
= 2.1 =
|
95 |
+
|
96 |
+
* Uses `hash_equals()` to compare strings.
|
97 |
+
|
98 |
= 2.0.2 =
|
99 |
|
100 |
* "Stable tag" refers to trunk.
|
107 |
|
108 |
* Did some rewrite of the code following the coding standard.
|
109 |
* Updated the license file; added a section for bundled font files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
really-simple-captcha.php
CHANGED
@@ -6,10 +6,10 @@ Description: Really Simple CAPTCHA is a CAPTCHA module intended to be called fro
|
|
6 |
Author: Takayuki Miyoshi
|
7 |
Author URI: https://ideasilo.wordpress.com/
|
8 |
Text Domain: really-simple-captcha
|
9 |
-
Version: 2.
|
10 |
*/
|
11 |
|
12 |
-
define( 'REALLYSIMPLECAPTCHA_VERSION', '2.
|
13 |
|
14 |
class ReallySimpleCaptcha {
|
15 |
|
@@ -204,7 +204,7 @@ class ReallySimpleCaptcha {
|
|
204 |
$salt = $code[0];
|
205 |
$hash = $code[1];
|
206 |
|
207 |
-
if ( hash_hmac( 'md5', $response, $salt )
|
208 |
return true;
|
209 |
}
|
210 |
}
|
6 |
Author: Takayuki Miyoshi
|
7 |
Author URI: https://ideasilo.wordpress.com/
|
8 |
Text Domain: really-simple-captcha
|
9 |
+
Version: 2.1
|
10 |
*/
|
11 |
|
12 |
+
define( 'REALLYSIMPLECAPTCHA_VERSION', '2.1' );
|
13 |
|
14 |
class ReallySimpleCaptcha {
|
15 |
|
204 |
$salt = $code[0];
|
205 |
$hash = $code[1];
|
206 |
|
207 |
+
if ( hash_equals( $hash, hash_hmac( 'md5', $response, $salt ) ) ) {
|
208 |
return true;
|
209 |
}
|
210 |
}
|