Plugin Directory

Changeset 3488817


Ignore:
Timestamp:
03/23/2026 10:14:36 AM (10 days ago)
Author:
assafadscale
Message:

HotFix

Location:
adscale-ai/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • adscale-ai/trunk/adscale-ai.php

    r3483168 r3488817  
    88 * Plugin URI: https://www.adscale.com/integration/#woocommerce
    99 * Description: AdScale plugin allows you to automate Ecommerce advertising across all channels and drive more sales to your store. Easily create, manage & optimize ads on one platform.
    10  * Version: 2.2.17
     10 * Version: 2.2.18
    1111 * Author: AdScale LTD
    1212 * Author URI: https://www.adscale.com
     
    1414 * Requires at least: 6.2
    1515 * Requires PHP: 7.4
    16  * Tested up to: 6.9.3
     16 * Tested up to: 6.9.4
    1717 * WC requires at least: 8.0
    18  * WC tested up to: 10.5.3
     18 * WC tested up to: 10.6.1
    1919 * License: GPL-2.0+
    2020 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2323defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
    2424use AdScale\App;
    25 define( 'ADSCALE_INTERNAL_MODULE_VERSION', 'v20260315-M' );
     25define( 'ADSCALE_INTERNAL_MODULE_VERSION', 'v20260316-M' );
    2626define( 'ADSCALE_PLUGIN_DIR', __DIR__ );
    2727define( 'ADSCALE_PLUGIN_FILE', __FILE__ );
  • adscale-ai/trunk/changelog.txt

    r3482917 r3488817  
    11*** AdScale AI Changelog ***
     2
     32026-03-16 - version 2.1.18
     4* Fix: improve helper sanitization, cookie handling, and safe external redirects for Woo QIT compliance.
    25
    362026-03-11 - version 2.1.17
  • adscale-ai/trunk/readme.txt

    r3482917 r3488817  
    33Tags: woocommerce, google ads, facebook ads, ecommerce, advertising
    44Requires at least: 6.2
    5 Tested up to: 6.9.3
     5Tested up to: 6.9.4
    66Requires PHP: 7.4
    7 Stable tag: 2.2.17
     7Stable tag: 2.2.18
    88License: GPL-2.0+
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4242
    4343* WordPress 5.0 or greater
    44 * PHP version 7.0 or greater
     44* PHP version 7.4 or greater
    4545* WooCommerce 3.9 or greater
  • adscale-ai/trunk/src/Handlers/Status.php

    r3482917 r3488817  
    432432        $woo_docs_url = 'https://woocommerce.github.io/woocommerce-rest-api-docs/#authentication-over-https';
    433433
    434         if ( function_exists( 'apache_get_modules' ) && strpos( $_SERVER['SERVER_SOFTWARE'], 'Apache' ) !== false ) {
     434        if ( function_exists( 'apache_get_modules' ) && strpos( $server_software, 'Apache' ) !== false ) {
    435435            $apache_modules       = apache_get_modules() ?: []; // Ensure it's an array
    436436            $mod_auth_basic_debug = in_array( 'mod_auth_basic', $apache_modules, true );
  • adscale-ai/trunk/src/Handlers/WooHandlers.php

    r3414062 r3488817  
    275275
    276276    public static function wc_checkout_page_front(){
    277         $value=Helper::get_opt_in_action()=='on'?1:0;
     277        $value=Helper::get_opt_in_checked()=='on'?1:0;
    278278
    279279        echo '<div id="adscale__optin">';
  • adscale-ai/trunk/src/Helpers/Helper.php

    r3482917 r3488817  
    10601060    public static function get_cookie($name, $default = '', $sanitize_callback = null)
    10611061    {
    1062         if (!isset($_COOKIE[$name])) {
     1062        $cookie_name = is_string($name) ? sanitize_key($name) : '';
     1063        if ('' === $cookie_name) {
    10631064            return $default;
    10641065        }
    10651066
    1066         // Ensure string and unslash from PHP/WP runtime
    1067         $value = is_string($_COOKIE[$name]) ? wp_unslash($_COOKIE[$name]) : '';
     1067        $raw_cookie = filter_input(INPUT_COOKIE, $cookie_name, FILTER_UNSAFE_RAW, FILTER_NULL_ON_FAILURE);
     1068        if (null === $raw_cookie || false === $raw_cookie) {
     1069            return $default;
     1070        }
     1071
     1072        // Ensure string and unslash from PHP/WP runtime.
     1073        $value = is_string($raw_cookie) ? wp_unslash($raw_cookie) : '';
    10681074
    10691075        // If our setter used rawurlencode, decode here (safe if not encoded)
  • adscale-ai/trunk/src/ServiceApi/ServiceApiBase.php

    r3482917 r3488817  
    176176        ];
    177177        if ( defined( 'E_STRICT' ) ) {
    178             $errorType[ E_STRICT ] = 'Runtime Notice'; // handle at shutdown
     178            $errorType[ 2048 ] = 'Runtime Notice'; // E_STRICT legacy value
    179179        }
    180180
     
    211211                );
    212212        }
    213         if ( defined( 'E_STRICT' ) && $errno === E_STRICT ) {
     213        if ( defined( 'E_STRICT' ) && 2048 === (int) $errno ) {
    214214            Logger::log( $errorMessage, 'PHP Notice > ', 'ServiceApi_' . self::getCalledClassShortName(), 0, 1 );
    215215        }
Note: See TracChangeset for help on using the changeset viewer.