Plugin Directory

Changeset 560101


Ignore:
Timestamp:
06/18/2012 06:41:47 PM (14 years ago)
Author:
jrking4
Message:
 
Location:
masquerade/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • masquerade/trunk/masquerade.php

    r559950 r560101  
    44Plugin URI: http://castle-creative.com/
    55Description: Adds a link to users.php that allows an administrator to login as that user without knowing the password.
    6 Version: 1.0
     6Version: 1.01
    77Author: JR King
    88Author URI: http://castle-creative.com/
     
    4949                    var data = {
    5050                        action: 'masq_user',
     51                        wponce: '<?php echo wp_create_nonce('masq_once')?>',
    5152                        uid: uid
    5253                    }
     
    6465    add_action('wp_ajax_masq_user', 'ajax_masq_login');
    6566        function ajax_masq_login() {
     67            $wponce=$_POST['wponce'];
     68            if (! wp_verify_nonce($wponce, 'masq_once') ) wp_die('Security check');
    6669            $uid = (int)($_POST['uid']);
    6770            $user_info = get_userdata($uid);
  • masquerade/trunk/readme.txt

    r559950 r560101  
    66Requires at least: 2.8
    77Tested up to: 3.3.2
    8 Stable tag: 1.0
     8Stable tag: 1.01
    99License: General Public License version 2
    1010
     
    2828== Change Log ==
    2929
     30= 1.01 =
     31* Added nonce security check to POST request
     32
    3033= 1.0 =
    3134* First stable release
Note: See TracChangeset for help on using the changeset viewer.