Version Description
Download this release
Release Info
Developer | pluginkollektiv |
Plugin | AntiVirus |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.3
- CHANGELOG.md +5 -0
- README.md +12 -3
- antivirus.php +2 -1
- docker_tag +0 -1
- inc/class-antivirus-safebrowsing.php +1 -1
- inc/class-antivirus.php +77 -8
- output.log +0 -65
CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
# Changelog
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
### 1.4.2 ###
|
4 |
* Drop recursive check on option that failed in several scenarios (#96) (#97)
|
5 |
* Drop check for base64 encoded strings which did not work properly in al cases (#100)
|
1 |
# Changelog
|
2 |
|
3 |
+
### 1.4.3 ###
|
4 |
+
* Point Safe Browsing link on settings page to site-specific URL (#106)
|
5 |
+
* Increase the size of the Safe Browsing API input to show the entire key (#109)
|
6 |
+
* Show warning if Safe Browsing check is enabled without custom API key (#105)
|
7 |
+
|
8 |
### 1.4.2 ###
|
9 |
* Drop recursive check on option that failed in several scenarios (#96) (#97)
|
10 |
* Drop check for base64 encoded strings which did not work properly in al cases (#100)
|
README.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4 |
* Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
|
5 |
* Requires at least: 4.1
|
6 |
* Requires PHP: 5.2
|
7 |
-
* Tested up to:
|
8 |
-
* Stable tag: 1.4.
|
9 |
* License: GPLv2 or later
|
10 |
-
* License URI:
|
11 |
|
12 |
Security plugin to protect your blog or website against exploits and spam injections.
|
13 |
|
@@ -41,6 +41,11 @@ A complete documentation is available on the [AntiVirus website](https://antivir
|
|
41 |
|
42 |
## Changelog ##
|
43 |
|
|
|
|
|
|
|
|
|
|
|
44 |
### 1.4.2 ###
|
45 |
* Drop recursive check on option that failed in several scenarios (#96, #97)
|
46 |
* Drop check for base64 encoded strings which did not work properly in al cases (#100)
|
@@ -81,6 +86,10 @@ For the complete changelog, check out our [GitHub repository](https://github.com
|
|
81 |
|
82 |
## Upgrade Notice ##
|
83 |
|
|
|
|
|
|
|
|
|
84 |
### 1.4.2 ###
|
85 |
This is a bugfix release removing two checks of the theme scan causing false positives.
|
86 |
|
4 |
* Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
|
5 |
* Requires at least: 4.1
|
6 |
* Requires PHP: 5.2
|
7 |
+
* Tested up to: 6.0
|
8 |
+
* Stable tag: 1.4.3
|
9 |
* License: GPLv2 or later
|
10 |
+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
Security plugin to protect your blog or website against exploits and spam injections.
|
13 |
|
41 |
|
42 |
## Changelog ##
|
43 |
|
44 |
+
### 1.4.3 ###
|
45 |
+
* Point Safe Browsing link on settings page to site-specific URL (#106)
|
46 |
+
* Increase the size of the Safe Browsing API input to show the entire key (#109)
|
47 |
+
* Show warning if Safe Browsing check is enabled without custom API key (#105)
|
48 |
+
|
49 |
### 1.4.2 ###
|
50 |
* Drop recursive check on option that failed in several scenarios (#96, #97)
|
51 |
* Drop check for base64 encoded strings which did not work properly in al cases (#100)
|
86 |
|
87 |
## Upgrade Notice ##
|
88 |
|
89 |
+
### 1.4.3 ###
|
90 |
+
Please note that we will discontinue providing a built-in API key for the Google Safe Browsing feature.
|
91 |
+
If you have enabled this check, please provide your own API key before the next update.
|
92 |
+
|
93 |
### 1.4.2 ###
|
94 |
This is a bugfix release removing two checks of the theme scan causing false positives.
|
95 |
|
antivirus.php
CHANGED
@@ -8,13 +8,14 @@
|
|
8 |
* Text Domain: antivirus
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
-
* Version: 1.4.
|
12 |
*
|
13 |
* @package AntiVirus
|
14 |
*/
|
15 |
|
16 |
/*
|
17 |
Copyright (C) 2009-2015 Sergej Müller
|
|
|
18 |
|
19 |
This program is free software; you can redistribute it and/or modify
|
20 |
it under the terms of the GNU General Public License as published by
|
8 |
* Text Domain: antivirus
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
+
* Version: 1.4.3
|
12 |
*
|
13 |
* @package AntiVirus
|
14 |
*/
|
15 |
|
16 |
/*
|
17 |
Copyright (C) 2009-2015 Sergej Müller
|
18 |
+
Copyright (C) 2016-2021 pluginkollektiv
|
19 |
|
20 |
This program is free software; you can redistribute it and/or modify
|
21 |
it under the terms of the GNU General Public License as published by
|
docker_tag
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
docker.pkg.github.com/pluginkollektiv/antivirus/php-actions_composer_antivirus:php-latest-build2
|
|
inc/class-antivirus-safebrowsing.php
CHANGED
@@ -44,7 +44,7 @@ class AntiVirus_SafeBrowsing extends AntiVirus {
|
|
44 |
array(
|
45 |
'client' => array(
|
46 |
'clientId' => 'wpantivirus',
|
47 |
-
'clientVersion' => '1.4.
|
48 |
),
|
49 |
'threatInfo' => array(
|
50 |
'threatTypes' => array(
|
44 |
array(
|
45 |
'client' => array(
|
46 |
'clientId' => 'wpantivirus',
|
47 |
+
'clientVersion' => '1.4.3',
|
48 |
),
|
49 |
'threatInfo' => array(
|
50 |
'threatTypes' => array(
|
inc/class-antivirus.php
CHANGED
@@ -586,6 +586,17 @@ class AntiVirus {
|
|
586 |
* Show notice on the dashboard.
|
587 |
*/
|
588 |
public static function show_dashboard_notice() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
// Only show notice if there's an alert.
|
590 |
if ( ! self::_get_option( 'cronjob_alert' ) ) {
|
591 |
return;
|
@@ -653,7 +664,15 @@ class AntiVirus {
|
|
653 |
</strong>
|
654 |
</p>
|
655 |
</div>
|
656 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
|
658 |
<div class="wrap" id="av_main">
|
659 |
<h1>
|
@@ -722,13 +741,26 @@ class AntiVirus {
|
|
722 |
|
723 |
<p class="description">
|
724 |
<?php
|
725 |
-
|
726 |
-
|
727 |
-
$end_tag = '</a>';
|
728 |
echo wp_kses(
|
729 |
-
|
730 |
-
|
731 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
732 |
);
|
733 |
?>
|
734 |
</p>
|
@@ -739,7 +771,7 @@ class AntiVirus {
|
|
739 |
<?php esc_html_e( 'Safe Browsing API key', 'antivirus' ); ?>
|
740 |
</label>
|
741 |
<br/>
|
742 |
-
<input type="text" name="av_safe_browsing_key" id="av_safe_browsing_key"
|
743 |
value="<?php echo esc_attr( self::_get_option( 'safe_browsing_key' ) ); ?>" />
|
744 |
|
745 |
<p class="description">
|
@@ -814,4 +846,41 @@ class AntiVirus {
|
|
814 |
</div>
|
815 |
<?php
|
816 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
817 |
}
|
586 |
* Show notice on the dashboard.
|
587 |
*/
|
588 |
public static function show_dashboard_notice() {
|
589 |
+
// Add admin notice to users who can manage options, if Safe Browsing is enabled without custom API key.
|
590 |
+
if ( current_user_can( 'manage_options' ) ) {
|
591 |
+
$screen = get_current_screen();
|
592 |
+
if ( ! is_object( $screen ) || 'settings_page_antivirus' !== $screen->base ) {
|
593 |
+
$safe_browsing_key = self::_get_option( 'safe_browsing_key' );
|
594 |
+
if ( self::_get_option( 'safe_browsing' ) && empty( $safe_browsing_key ) ) {
|
595 |
+
self::show_safebrowsing_notice();
|
596 |
+
}
|
597 |
+
}
|
598 |
+
}
|
599 |
+
|
600 |
// Only show notice if there's an alert.
|
601 |
if ( ! self::_get_option( 'cronjob_alert' ) ) {
|
602 |
return;
|
664 |
</strong>
|
665 |
</p>
|
666 |
</div>
|
667 |
+
<?php
|
668 |
+
}
|
669 |
+
|
670 |
+
// Show admin notice for Safe Browsing without API key immediately after saving settings.
|
671 |
+
$safe_browsing_key = self::_get_option( 'safe_browsing_key' );
|
672 |
+
if ( self::_get_option( 'safe_browsing' ) && empty( $safe_browsing_key ) ) {
|
673 |
+
self::show_safebrowsing_notice();
|
674 |
+
}
|
675 |
+
?>
|
676 |
|
677 |
<div class="wrap" id="av_main">
|
678 |
<h1>
|
741 |
|
742 |
<p class="description">
|
743 |
<?php
|
744 |
+
esc_html_e( 'Diagnosis and notification in suspicion case.', 'antivirus' );
|
745 |
+
echo ' ';
|
|
|
746 |
echo wp_kses(
|
747 |
+
sprintf(
|
748 |
+
/* translators: First placeholder (%1$s) starting link tag to transparency report, second placeholder (%2$s) closing link tag */
|
749 |
+
__( 'For more details read %1$sthe transparency report%2$s.', 'antivirus' ),
|
750 |
+
sprintf(
|
751 |
+
'<a href="https://transparencyreport.google.com/safe-browsing/search?url=%s&hl=%s" target="_blank" rel="noopener noreferrer">',
|
752 |
+
urlencode( get_bloginfo( 'url' ) ),
|
753 |
+
substr( get_locale(), 0, 2 )
|
754 |
+
),
|
755 |
+
'</a>'
|
756 |
+
),
|
757 |
+
array(
|
758 |
+
'a' => array(
|
759 |
+
'href' => array(),
|
760 |
+
'target' => array(),
|
761 |
+
'rel' => array(),
|
762 |
+
),
|
763 |
+
)
|
764 |
);
|
765 |
?>
|
766 |
</p>
|
771 |
<?php esc_html_e( 'Safe Browsing API key', 'antivirus' ); ?>
|
772 |
</label>
|
773 |
<br/>
|
774 |
+
<input type="text" name="av_safe_browsing_key" id="av_safe_browsing_key" size="45"
|
775 |
value="<?php echo esc_attr( self::_get_option( 'safe_browsing_key' ) ); ?>" />
|
776 |
|
777 |
<p class="description">
|
846 |
</div>
|
847 |
<?php
|
848 |
}
|
849 |
+
|
850 |
+
/**
|
851 |
+
* Show admin notice for Safe Browsing use without API key.
|
852 |
+
*
|
853 |
+
* @since 1.4.3
|
854 |
+
*/
|
855 |
+
private static function show_safebrowsing_notice() {
|
856 |
+
printf(
|
857 |
+
'<div class="notice notice-warning is-dismissible"><p><strong>%1$s</strong></p><p>%2$s</p><p>%3$s %4$s</p></div>',
|
858 |
+
esc_html( 'No Safe Browsing API key provided for AntiVirus', 'antivirus' ),
|
859 |
+
esc_html( 'Google Safe Browsing check is enabled without a custom API key. The built-in key is no longer supported and will be be removed with the next release of AntiVirus.', 'antivirus' ),
|
860 |
+
wp_kses(
|
861 |
+
sprintf(
|
862 |
+
/* translators: First placeholder (%1$s) starting link tag to the plugin settings page, second placeholder (%2$s) closing link tag */
|
863 |
+
__( 'If you want to continue using this feature, please provide an API key using the %1$sAntiVirus settings page%2$s.', 'antivirus' ),
|
864 |
+
'<a href="' . esc_attr( add_query_arg( array( 'page' => 'antivirus' ), admin_url( '/options-general.php' ) ) ) . '">',
|
865 |
+
'</a>'
|
866 |
+
),
|
867 |
+
array( 'a' => array( 'href' => array() ) )
|
868 |
+
),
|
869 |
+
wp_kses(
|
870 |
+
sprintf(
|
871 |
+
/* translators: First placeholder (%1$s) starting link tag to the documentation page, second placeholder (%2$s) closing link tag */
|
872 |
+
__( 'See official %1$sdocumentation%2$s from Google.', 'antivirus' ),
|
873 |
+
'<a href="https://cloud.google.com/docs/authentication/api-keys" target="_blank" rel="noopener noreferrer">',
|
874 |
+
'</a>'
|
875 |
+
),
|
876 |
+
array(
|
877 |
+
'a' => array(
|
878 |
+
'href' => array(),
|
879 |
+
'target' => array(),
|
880 |
+
'rel' => array(),
|
881 |
+
),
|
882 |
+
)
|
883 |
+
)
|
884 |
+
);
|
885 |
+
}
|
886 |
}
|
output.log
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
Running php-build composer
|
2 |
-
WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json.
|
3 |
-
Configure a credential helper to remove this warning. See
|
4 |
-
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
|
5 |
-
|
6 |
-
Login Succeeded
|
7 |
-
Pulling docker.pkg.github.com/pluginkollektiv/antivirus/php-actions_composer_antivirus:php-latest-build2
|
8 |
-
WARNING: ⚠️ Failed to pull manifest by the resolved digest. This registry does not
|
9 |
-
appear to conform to the distribution registry specification; falling back to
|
10 |
-
pull by tag. This fallback is DEPRECATED, and will be removed in a future
|
11 |
-
release. Please contact admins of https://docker.pkg.github.com. ⚠️
|
12 |
-
|
13 |
-
php-latest-build2: Pulling from pluginkollektiv/antivirus/php-actions_composer_antivirus
|
14 |
-
ba3557a56b15: Pulling fs layer
|
15 |
-
743181516422: Pulling fs layer
|
16 |
-
6c307b60e377: Pulling fs layer
|
17 |
-
e2d5b4330891: Pulling fs layer
|
18 |
-
0baf29266ab7: Pulling fs layer
|
19 |
-
dfa723e4109b: Pulling fs layer
|
20 |
-
7e9fbc8e5c1a: Pulling fs layer
|
21 |
-
510d7725cdd5: Pulling fs layer
|
22 |
-
5fdc925b16f5: Pulling fs layer
|
23 |
-
1096ec115729: Pulling fs layer
|
24 |
-
0baf29266ab7: Waiting
|
25 |
-
dfa723e4109b: Waiting
|
26 |
-
7e9fbc8e5c1a: Waiting
|
27 |
-
510d7725cdd5: Waiting
|
28 |
-
5fdc925b16f5: Waiting
|
29 |
-
1096ec115729: Waiting
|
30 |
-
e2d5b4330891: Waiting
|
31 |
-
6c307b60e377: Verifying Checksum
|
32 |
-
6c307b60e377: Download complete
|
33 |
-
743181516422: Download complete
|
34 |
-
e2d5b4330891: Verifying Checksum
|
35 |
-
e2d5b4330891: Download complete
|
36 |
-
dfa723e4109b: Verifying Checksum
|
37 |
-
dfa723e4109b: Download complete
|
38 |
-
0baf29266ab7: Verifying Checksum
|
39 |
-
0baf29266ab7: Download complete
|
40 |
-
510d7725cdd5: Verifying Checksum
|
41 |
-
510d7725cdd5: Download complete
|
42 |
-
5fdc925b16f5: Verifying Checksum
|
43 |
-
5fdc925b16f5: Download complete
|
44 |
-
ba3557a56b15: Verifying Checksum
|
45 |
-
ba3557a56b15: Download complete
|
46 |
-
7e9fbc8e5c1a: Verifying Checksum
|
47 |
-
7e9fbc8e5c1a: Download complete
|
48 |
-
ba3557a56b15: Pull complete
|
49 |
-
743181516422: Pull complete
|
50 |
-
6c307b60e377: Pull complete
|
51 |
-
1096ec115729: Verifying Checksum
|
52 |
-
1096ec115729: Download complete
|
53 |
-
e2d5b4330891: Pull complete
|
54 |
-
0baf29266ab7: Pull complete
|
55 |
-
dfa723e4109b: Pull complete
|
56 |
-
7e9fbc8e5c1a: Pull complete
|
57 |
-
510d7725cdd5: Pull complete
|
58 |
-
5fdc925b16f5: Pull complete
|
59 |
-
1096ec115729: Pull complete
|
60 |
-
Digest: sha256:12f2c29af2075f5e0f87735ecbff4a9e2ee35a91d301aa8f4142a3b8b71e2cf9
|
61 |
-
Status: Downloaded newer image for docker.pkg.github.com/pluginkollektiv/antivirus/php-actions_composer_antivirus:php-latest-build2
|
62 |
-
docker.pkg.github.com/pluginkollektiv/antivirus/php-actions_composer_antivirus:php-latest-build2
|
63 |
-
Docker tag: docker.pkg.github.com/pluginkollektiv/antivirus/php-actions_composer_antivirus:php-latest-build2
|
64 |
-
No private keys supplied
|
65 |
-
Command: composer install --no-progress --no-interaction
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|