Plugin Directory

Changeset 3250906


Ignore:
Timestamp:
03/05/2025 08:10:54 AM (12 months ago)
Author:
mykiot
Message:

CVSS: SQLi N XSSi

Location:
kiotvietsync/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kiotvietsync/trunk/admin/views/options.php

    r3160186 r3250906  
    1717
    1818    if(!empty($_POST['kv_timeautosyncorder'])) {
    19         update_option('kv_timeautosyncorder', $_POST['kv_timeautosyncorder']);
     19        update_option('kv_timeautosyncorder', intval($_POST['kv_timeautosyncorder']));
    2020    }
    2121
  • kiotvietsync/trunk/includes/class-kiotviet-sync.php

    r3197053 r3250906  
    2525            $this->version = KIOTVIET_PLUGIN_VERSION;
    2626        } else {
    27             $this->version = '1.8.3';
     27            $this->version = '1.8.4';
    2828        }
    2929
  • kiotvietsync/trunk/includes/services/class-kiotviet-sync-services-categories.php

    r2755397 r3250906  
    4848
    4949        foreach ($categories as $category) {
    50             $categoryKvId[] = $category['categoryKvId'];
     50            $categoryKvId[] = intval($category['categoryKvId']);
    5151        }
    5252
    5353        $categoryMap = $this->getCategoryIdMap($categoryKvId);
    5454        foreach ($categories as $category) {
    55             if (empty($categoryMap[$category["categoryKvId"]])) {
     55            if (empty($categoryMap[intval($category["categoryKvId"])])) {
    5656                $category_id = $this->KiotvietWcCategory->add_category($category);
    5757                if (!is_wp_error($category_id)) {
    5858                    $insert = [
    5959                        'category_id' => $category_id,
    60                         'category_kv_id' => $category["categoryKvId"],
     60                        'category_kv_id' => intval($category["categoryKvId"]),
    6161                        'data_raw' => $category["dataRaw"],
    6262                        'retailer' => $this->retailer,
  • kiotvietsync/trunk/kiotviet-sync.php

    r3197053 r3250906  
    77 * Plugin URI:        https://kiotviet.vn
    88 * Description:       Plugin hỗ trợ đồng bộ sản phẩm, đơn hàng giữa website Wordpress với KiotViet.
    9  * Version:           1.8.3
     9 * Version:           1.8.4
    1010 * Author:            KiotViet
    1111 * Author URI:        https://kiotviet.vn
     
    2424define('KIOTVIET_PLUGIN_PATH', plugin_dir_path( __FILE__ ));
    2525define('KIOTVIET_PLUGIN_URL', plugin_dir_url( __FILE__ ));
    26 define('KIOTVIET_PLUGIN_VERSION', '1.8.3');
     26define('KIOTVIET_PLUGIN_VERSION', '1.8.4');
    2727
    2828include_once "bootstrap.php";
  • kiotvietsync/trunk/readme.txt

    r3197053 r3250906  
    5454
    5555== Changelog ==
     56= 1.8.4 =
     57* 05/03/2025
     58* CVSS: SQLi N XSSi
    5659= 1.8.3 =
    5760* 26/11/2024
Note: See TracChangeset for help on using the changeset viewer.