Plugin Directory

Changeset 2142138


Ignore:
Timestamp:
08/19/2019 07:05:45 PM (7 years ago)
Author:
glen_scott
Message:

tagging version 2.0.2

Location:
plugin-security-scanner
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • plugin-security-scanner/tags/2.0.2/plugin-security-scanner.php

    r2131551 r2142138  
    55 * Plugin URI: https://yellowsquare.com/plugin-security-scanner/
    66 * 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.1
     7 * Version: 2.0.2
    88 * Author: Glen Scott
    99 * Author URI: https://www.glenscott.co.uk
     
    230230    }
    231231    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 );
    233239    }
    234240    else {
  • plugin-security-scanner/tags/2.0.2/readme.txt

    r2131551 r2142138  
    33Tags: plugins,security,scanner,vulnerabilities,secure
    44Tested up to: 5.2.2
    5 Stable tag: 2.0.1
     5Stable tag: 2.0.2
    66License: GPLv2 or later
    77
     
    3232
    3333== Changelog ==
     34
     35= 2.0.2 =
     36* Clarified 403 error
    3437
    3538= 2.0.1 =
  • plugin-security-scanner/trunk/plugin-security-scanner.php

    r2131551 r2142138  
    55 * Plugin URI: https://yellowsquare.com/plugin-security-scanner/
    66 * 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.1
     7 * Version: 2.0.2
    88 * Author: Glen Scott
    99 * Author URI: https://www.glenscott.co.uk
     
    230230    }
    231231    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 );
    233239    }
    234240    else {
  • plugin-security-scanner/trunk/readme.txt

    r2131551 r2142138  
    33Tags: plugins,security,scanner,vulnerabilities,secure
    44Tested up to: 5.2.2
    5 Stable tag: 2.0.1
     5Stable tag: 2.0.2
    66License: GPLv2 or later
    77
     
    3232
    3333== Changelog ==
     34
     35= 2.0.2 =
     36* Clarified 403 error
    3437
    3538= 2.0.1 =
Note: See TracChangeset for help on using the changeset viewer.