Plugin Directory

Changeset 3294815


Ignore:
Timestamp:
05/16/2025 01:55:34 PM (10 months ago)
Author:
Prisna
Message:

Updated code to prevent administrators from injecting a PHP object during the settings import process

Location:
bing-website-translator/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bing-website-translator/trunk/bing-website-translator.php

    r2928095 r3294815  
    66 * Description: This plugin brings the power of Bing's automatic translation service to translate your website into 40+ languages. It also comes with a slick admin panel, so it can be installed into your client's website without losing the professional look and feel of your work.
    77 * Author: Prisna
    8  * Version: 1.0.3
     8 * Version: 1.0.4
    99 * Author URI: http://www.prisna.net/
    1010 * License: GPL2+
     
    1414
    1515define('PRISNA_BWT__MINIMUM_WP_VERSION', '3.3');
    16 define('PRISNA_BWT__VERSION', '1.0.3');
     16define('PRISNA_BWT__VERSION', '1.0.4');
    1717
    1818define('PRISNA_BWT__PLUGIN_DIR', plugin_dir_path(__FILE__));
  • bing-website-translator/trunk/classes/admin.class.php

    r1049409 r3294815  
    275275            return null;
    276276       
    277         $decode = base64_decode($value);
     277        $decode = @base64_decode($value);
    278278       
    279279        if ($decode === false) {
     
    282282        }
    283283       
    284         $unserialize = @unserialize($decode);
     284        $to_unserialize = preg_match('/O:\d+:(["\'])[^\1]+?\1:\d+:{/i', $decode) ? '' : $decode;
     285       
     286        $unserialize = @unserialize($to_unserialize, array('allowed_classes' => false));
    285287
    286288        if (!is_array($unserialize)) {
  • bing-website-translator/trunk/readme.txt

    r2928095 r3294815  
    33Tags: translation plugin, automatic translation, machine translation, automatic translate, bing website translator, bing translator, bing language translator, language translate, language translator, multi language, translate, translation
    44Requires PHP: 5.6
    5 Stable tag: 1.0.3
     5Stable tag: 1.0.4
    66Requires at least: 3.3
    77Tested up to: 6.0
Note: See TracChangeset for help on using the changeset viewer.