Plugin Directory

Changeset 3417782


Ignore:
Timestamp:
12/11/2025 10:34:55 PM (4 months ago)
Author:
bompus
Message:

3.7.6

Location:
wp-customer-reviews
Files:
39 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-customer-reviews/trunk/changelog.txt

    r3417719 r3417782  
     1= 3.7.6 =
     2* 12/11/2025
     3* [Update] Bug fix with hardening updates
     4
    15= 3.7.5 =
    26* 12/11/2025
  • wp-customer-reviews/trunk/readme.txt

    r3417719 r3417782  
    55Requires at least: 3.0.0
    66Tested up to: 6.9
    7 Stable tag: 3.7.5
     7Stable tag: 3.7.6
    88License: MIT
    99License URI: http://opensource.org/licenses/MIT
     
    6262
    6363== Changelog ==
     64
     65= 3.7.6 =
     66* 12/11/2025
     67* [Update] Bug fix with hardening updates
    6468
    6569= 3.7.5 =
  • wp-customer-reviews/trunk/wp-customer-reviews-3.php

    r3417719 r3417782  
    44 * Plugin URI: https://wordpress.org/plugins/wp-customer-reviews/
    55 * Description: Allows your visitors to leave business / product reviews. Testimonials are in Microdata / Microformat and may display star ratings in search results.
    6  * Version: 3.7.5
     6 * Version: 3.7.6
    77 * Author: Aaron Queen
    88 * Author URI: https://wordpress.org/plugins/wp-customer-reviews/
     
    200200    }
    201201
     202        function sanitize_p_obj_array($valArr) {
     203            foreach ($valArr as $k => $v) {
     204                if (is_array($v)) {
     205                    $valArr[$k] = $this->sanitize_p_obj_array($v);
     206                    continue;
     207                }
     208
     209                if ($this->isXssAttempt($v)) {
     210                    $valArr[$k] = '';
     211                }
     212            }
     213
     214            return $valArr;
     215        }
     216
     217        function sanitize_p_obj() {
     218            foreach ($this->p as $c => $val) {
     219                if (is_array($val)) {
     220                    $this->p->$c = $this->sanitize_p_obj_array($val);
     221                    continue;
     222                }
     223
     224                if ($this->isXssAttempt($val)) {
     225                    $this->p->$c = '';
     226                }
     227            }
     228        }
     229
    202230        function make_p_obj() {
    203231            $this->p = new stdClass();
    204232
    205233            foreach ($_GET as $c => $val) {
    206                     if (is_array($val)) {
    207                             foreach ($val as $k => $v) {
    208                                 if ($this->isXssAttempt($v)) {
    209                                     $val[$k] = '';
    210                                 }
    211                             }
    212 
    213                             $this->p->$c = $val;
    214                     } else {
    215                             if ($this->isXssAttempt($val)) {
    216                                 $val = '';
    217                             }
    218 
    219                             $this->p->$c = trim(stripslashes($val));
    220                     }
     234                if (is_array($val)) {
     235                    $this->p->$c = $val;
     236                } else {
     237                    $this->p->$c = trim(stripslashes($val));
     238                }
    221239            }
    222240
    223241            foreach ($_POST as $c => $val) {
    224                     if (is_array($val)) {
    225                             foreach ($val as $k => $v) {
    226                                 if ($this->isXssAttempt($v)) {
    227                                     $val[$k] = '';
    228                                 }
    229                             }
    230 
    231                             $this->p->$c = $val;
    232                         } else {
    233                             if ($this->isXssAttempt($val)) {
    234                                 $val = '';
    235                             }
    236 
    237                             $this->p->$c = trim(stripslashes($val));
    238                         }
    239                     }
     242                if (is_array($val)) {
     243                    $this->p->$c = $val;
     244                } else {
     245                    $this->p->$c = trim(stripslashes($val));
     246                }
     247            }
     248
     249            $this->sanitize_p_obj();
    240250        }
    241251   
Note: See TracChangeset for help on using the changeset viewer.