Plugin Directory

Changeset 2701032


Ignore:
Timestamp:
03/29/2022 07:14:00 AM (4 years ago)
Author:
atomchat
Message:

Sanitized Avatar URL

Location:
atomchat
Files:
43 added
4 edited

Legend:

Unmodified
Added
Removed
  • atomchat/trunk/README.txt

    r2654232 r2701032  
    44Requires at least: 4.7
    55Requires PHP: 5.6
    6 Tested up to: 5.8
    7 Stable tag: 1.0.9
     6Tested up to: 5.9
     7Stable tag: 1.1.0
    88License: GNU General Public License v2.0 or later
    99
     
    168168* Added Username setting
    169169* Added role configuration for PremiumPress
     170
     171= 1.1.0 =
     172* Sanitized Avatar URL
  • atomchat/trunk/atomchat.php

    r2621271 r2701032  
    44* Plugin Name: AtomChat
    55* Description: Voice, video & text chat for your WordPress site
    6 * Version: 1.0.9
     6* Version: 1.1.0
    77* Author: AtomChat
    88* Author URI: https://www.atomchat.com/
  • atomchat/trunk/includes/atomchat_cloud.php

    r2621271 r2701032  
    296296        }
    297297
     298        /** Filtering Avatar URL */
     299        if(!empty($avatar) && strpos($avatar, '&') !== false){
     300            $newAvatar = explode('&', $avatar);
     301            $avatar = $newAvatar[0];
     302        }
     303        /** Filtering Avatar URL */
     304
    298305        $avatar = !empty($avatar) ? $avatar : '';
    299306        return $avatar;
  • atomchat/trunk/plugins/mycred/credits.php

    r2536984 r2701032  
    4242        $interval = "minute";
    4343        $creditToDeduct = array();
    44         $timeCounter = "";
     44        $timeCounter = array();
    4545        $isGroup = "";
    4646        $to = "";
     
    111111
    112112        if(!empty(get_transient('timer'.$id))){
    113             $timeCounter = get_transient('timer'.$id);
     113            $timeCounter[$type.$name.$id.$isGroup] = get_transient('timer'.$id);
    114114        }else{
    115115            $timeCounter[$type.$name.$id.$isGroup] = 0;
     
    129129        }elseif(!empty($credits["credits"]) && $credits["credits"] >= $amount && $name != "Text"){
    130130            $timeCounter[$type.$name.$id.$isGroup] = time();
    131             set_transient('timer'.$id,$timeCounter ,60 * 24);
     131            set_transient('timer'.$id,$timeCounter[$type.$name.$id.$isGroup] ,60 * 24);
    132132            $balance = mycred_subtract( 'Message', $userid, $amount, $message );
    133133            $result["success"] = true;
Note: See TracChangeset for help on using the changeset viewer.