Plugin Directory

Changeset 1213500


Ignore:
Timestamp:
08/05/2015 02:29:53 PM (11 years ago)
Author:
duosecurity
Message:

Support PHP back to 5.2.4

Location:
duo-wordpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • duo-wordpress/trunk/duo_wordpress.php

    r1212893 r1213500  
    3333    $DuoPing = '/auth/v2/ping';
    3434
     35    function parameterize($key, $value) {
     36        return sprintf('%s="%s"', $key, $value);
     37    }
     38
    3539    function duo_sign_request($user, $redirect) {
    3640        $ikey = duo_get_option('duo_ikey');
     
    5458            'frameborder' => '0',
    5559        );
    56         $iframe_attributes = array_map(function($key, $value) {
    57             return sprintf('%s="%s"', $key, $value);
    58         }, array_keys($iframe_attributes), array_values($iframe_attributes));
     60        $iframe_attributes = array_map(
     61            "parameterize",
     62            array_keys($iframe_attributes),
     63            array_values($iframe_attributes)
     64        );
    5965        $iframe_attributes = implode(" ", $iframe_attributes);
    6066
  • duo-wordpress/trunk/readme.txt

    r1212814 r1213500  
    33Tags: authentication, two-factor, authenticator, login, username, password, duo, security
    44Requires at least: 3.0
    5 Tested up to: 4.1
     5Tested up to: 4.2.4
    66Stable tag: 2.5
    77
Note: See TracChangeset for help on using the changeset viewer.