Plugin Directory

Changeset 1713069


Ignore:
Timestamp:
08/14/2017 10:00:59 AM (9 years ago)
Author:
httpcs
Message:

Adding release 1.0.6

Location:
httpcs-validation/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • httpcs-validation/trunk/httpcsValidation.php

    r1695218 r1713069  
    44  Plugin Name: HTTPCS Validation
    55  Description: This plugin helps you to do the HTTPCS validation process automatically
    6   Version: 1.0.5
     6  Version: 1.0.6
    77  Author: HTTPCS
    88  Author URI: https://www.httpcs.com/
     
    5858        }
    5959        if( !isset($_SESSION['securedToken']) || (isset($_SESSION['securedToken']) && empty($_SESSION['securedToken'])) ){
    60             $_SESSION['securedToken'] = hash('sha512', bin2hex(random_bytes(100)));
     60            $version = explode('.',PHP_VERSION);
     61            $PHP_VERSION_ID = ($version[0] * 10000 + $version[1] * 100 + $version[2]);
     62            if($PHP_VERSION_ID < 700000){
     63                $_SESSION['securedToken'] = hash('sha512', bin2hex(mt_getrandmax()));
     64            }else{
     65                $_SESSION['securedToken'] = hash('sha512', bin2hex(random_bytes(100)));
     66            }
    6167        }
    6268        $this->securedToken = $_SESSION['securedToken'];
     
    237243        wp_enqueue_style('httpcs-style');
    238244        wp_enqueue_script('httpcs-script');
     245        $wp_version = get_bloginfo('version');
    239246        //Setting the language for translations
    240         $this->locale_user = get_user_locale();
     247        if($wp_version >= 4.7 ){
     248            $this->locale_user = get_user_locale();
     249        }else{
     250            $this->locale_user = get_locale();
     251        }
    241252        $locale = $this->locale_user;
    242253        $tabIso = explode("_", $locale);
  • httpcs-validation/trunk/readme.txt

    r1695218 r1713069  
    22Contributors: HTTPCS
    33Tags: cyber security, web security
    4 Requires at least: 4.7
    5 Tested up to: 4.8
    6 Stable tag: 1.0.5
     4Requires at least: 4.0
     5Tested up to: 4.8.5
     6Stable tag: 1.0.6
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.