Skip to content

Commit ac00bd5

Browse files
authored
Hide secrets in plugin configuration (#160)
* hide secrets in plugin configuration * prepare release 1.15.20
1 parent 5b0fd23 commit ac00bd5

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

friendly-captcha/admin/options.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ function frcaptcha_settings_field_callback(array $args)
7373
$value = 1;
7474
$checked = checked(1, $setting, false);
7575
}
76+
77+
if ($type == "password") {
78+
$value = str_repeat("*", strlen($value));
79+
}
7680
?>
7781
<input autcomplete="none" type="<?php echo $type; ?>" name="<?php echo $option_name; ?>" id="<?php echo $option_name; ?>" value="<?php echo $value ?>" <?php echo $checked ?>>
7882
<label class="description" for="<?php echo $option_name; ?>"><?php echo $description ?></label>

friendly-captcha/friendly-captcha.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Plugin Name: Friendly Captcha for WordPress
55
* Description: Protect WordPress website forms from spam and abuse with Friendly Captcha, a privacy-first anti-bot solution.
6-
* Version: 1.15.19
6+
* Version: 1.15.20
77
* Requires at least: 5.0
88
* Requires PHP: 7.3
99
* Author: Friendly Captcha GmbH
@@ -19,7 +19,7 @@
1919
die;
2020
}
2121

22-
define('FRIENDLY_CAPTCHA_VERSION', '1.15.19');
22+
define('FRIENDLY_CAPTCHA_VERSION', '1.15.20');
2323
define('FRIENDLY_CAPTCHA_FRIENDLY_CHALLENGE_VERSION', '0.9.19');
2424
define('FRIENDLY_CAPTCHA_FRIENDLY_CAPTCHA_SDK_VERSION', '0.1.25');
2525
define('FRIENDLY_CAPTCHA_SUPPORTED_LANGUAGES', [

friendly-captcha/readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: captcha, antispam, spam, contact form, recaptcha, friendly-captcha, block
44
Requires at least: 5.0
55
Tested up to: 6.8
66
Requires PHP: 7.3
7-
Stable tag: 1.15.19
7+
Stable tag: 1.15.20
88
License: GPL v2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -96,6 +96,10 @@ However, you may wish to email the authors of plugins you'd like to support Frie
9696

9797
== Changelog ==
9898

99+
= 1.15.20 =
100+
101+
* Hide secrets in plugin setting inputs
102+
99103
= 1.15.19 =
100104

101105
* Update Friendly Captcha SDKs to most recent versions

0 commit comments

Comments
 (0)