Changeset 2142138
- Timestamp:
- 08/19/2019 07:05:45 PM (7 years ago)
- Location:
- plugin-security-scanner
- Files:
-
- 4 edited
- 1 copied
-
tags/2.0.2 (copied) (copied from plugin-security-scanner/trunk)
-
tags/2.0.2/plugin-security-scanner.php (modified) (2 diffs)
-
tags/2.0.2/readme.txt (modified) (2 diffs)
-
trunk/plugin-security-scanner.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugin-security-scanner/tags/2.0.2/plugin-security-scanner.php
r2131551 r2142138 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. 17 * Version: 2.0.2 8 8 * Author: Glen Scott 9 9 * Author URI: https://www.glenscott.co.uk … … 230 230 } 231 231 else if (is_error_status_code(wp_remote_retrieve_response_code($result)) ){ 232 return new WP_Error( PSP_GENERAL_ERROR, 'Failed to query wpvulndb, status code does not indicate success: ' . wp_remote_retrieve_response_code($result) ); 232 if ($headers->offsetExists('x-ratelimit-remaining') && $headers->offsetGet('x-ratelimit-remaining') === '0') { 233 $msg = 'Your API key has a limit of ' . $headers->offsetGet('x-ratelimit-limit') . ' requests per day. You have 0 requests left until ' . date_i18n( get_option( 'date_format' ), $headers->offsetGet('x-ratelimit-reset') ); 234 } else { 235 $msg = 'Failed to query wpvulndb, status code does not indicate success: ' . wp_remote_retrieve_response_code($result); 236 } 237 238 return new WP_Error( PSP_GENERAL_ERROR, $msg ); 233 239 } 234 240 else { -
plugin-security-scanner/tags/2.0.2/readme.txt
r2131551 r2142138 3 3 Tags: plugins,security,scanner,vulnerabilities,secure 4 4 Tested up to: 5.2.2 5 Stable tag: 2.0. 15 Stable tag: 2.0.2 6 6 License: GPLv2 or later 7 7 … … 32 32 33 33 == Changelog == 34 35 = 2.0.2 = 36 * Clarified 403 error 34 37 35 38 = 2.0.1 = -
plugin-security-scanner/trunk/plugin-security-scanner.php
r2131551 r2142138 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. 17 * Version: 2.0.2 8 8 * Author: Glen Scott 9 9 * Author URI: https://www.glenscott.co.uk … … 230 230 } 231 231 else if (is_error_status_code(wp_remote_retrieve_response_code($result)) ){ 232 return new WP_Error( PSP_GENERAL_ERROR, 'Failed to query wpvulndb, status code does not indicate success: ' . wp_remote_retrieve_response_code($result) ); 232 if ($headers->offsetExists('x-ratelimit-remaining') && $headers->offsetGet('x-ratelimit-remaining') === '0') { 233 $msg = 'Your API key has a limit of ' . $headers->offsetGet('x-ratelimit-limit') . ' requests per day. You have 0 requests left until ' . date_i18n( get_option( 'date_format' ), $headers->offsetGet('x-ratelimit-reset') ); 234 } else { 235 $msg = 'Failed to query wpvulndb, status code does not indicate success: ' . wp_remote_retrieve_response_code($result); 236 } 237 238 return new WP_Error( PSP_GENERAL_ERROR, $msg ); 233 239 } 234 240 else { -
plugin-security-scanner/trunk/readme.txt
r2131551 r2142138 3 3 Tags: plugins,security,scanner,vulnerabilities,secure 4 4 Tested up to: 5.2.2 5 Stable tag: 2.0. 15 Stable tag: 2.0.2 6 6 License: GPLv2 or later 7 7 … … 32 32 33 33 == Changelog == 34 35 = 2.0.2 = 36 * Clarified 403 error 34 37 35 38 = 2.0.1 =
Note: See TracChangeset
for help on using the changeset viewer.