Changeset 2131551
- Timestamp:
- 07/31/2019 04:23:40 PM (7 years ago)
- Location:
- plugin-security-scanner/trunk
- Files:
-
- 2 edited
-
plugin-security-scanner.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugin-security-scanner/trunk/plugin-security-scanner.php
r2115070 r2131551 5 5 * Plugin URI: https://yellowsquare.com/plugin-security-scanner/ 6 6 * Description: This plugin determines whether any of your plugins have security vulnerabilities. It does this by looking up details in the WPScan Vulnerability Database. 7 * Version: 2.0. 07 * Version: 2.0.1 8 8 * Author: Glen Scott 9 9 * Author URI: https://www.glenscott.co.uk … … 394 394 if (is_wp_error($vulnerabilities)) { 395 395 if ( $admin_email && '1' === $options['email_notification'] ) { 396 $mail_body = 'You must enter an API token in order to use the scanner. Register a user at the following URL and then copy the API token into the the Plugin Security Scanner settings: https://wpvulndb.com/users/sign_up'; 397 398 wp_mail( $admin_email, get_bloginfo() . ' ' . __( 'Plugin Security Scan', 'plugin-security-scanner' ) . ' ' . date_i18n( get_option( 'date_format' ) ), $mail_body ); 396 wp_mail( $admin_email, get_bloginfo() . ' ' . __( 'Plugin Security Scan', 'plugin-security-scanner' ) . ' ' . date_i18n( get_option( 'date_format' ) ), $vulnerabilities->get_error_message() ); 399 397 } 400 398 401 399 if ('1' === $options['webhook_notification']) { 402 400 $request = new WP_Http; 403 $message = 'You must enter an API token in order to use the scanner. <a href="https://wpvulndb.com/users/sign_up">Register a user</a> and then copy the API token into the the Plugin Security Scanner settings.'; 404 $result = $request->post( $options['webhook_notification_url'], array('body' => apply_filters('pluginsecurityscanner_webhook_message', json_encode($message)), 'headers' => array( "Content-type" => "application/json" )) ); 401 $result = $request->post( $options['webhook_notification_url'], array('body' => apply_filters('pluginsecurityscanner_webhook_message', json_encode($vulnerabilities->get_error_message())), 'headers' => array( "Content-type" => "application/json" )) ); 405 402 } 406 403 } else { -
plugin-security-scanner/trunk/readme.txt
r2115073 r2131551 3 3 Tags: plugins,security,scanner,vulnerabilities,secure 4 4 Tested up to: 5.2.2 5 Stable tag: 2.0. 05 Stable tag: 2.0.1 6 6 License: GPLv2 or later 7 7 … … 32 32 33 33 == Changelog == 34 35 = 2.0.1 = 36 * Clarified error message in daily email 34 37 35 38 = 2.0.0 =
Note: See TracChangeset
for help on using the changeset viewer.