Plugin Directory

Changeset 2362053


Ignore:
Timestamp:
08/15/2020 06:52:28 PM (6 years ago)
Author:
roberarec
Message:

fixing sanitized data

Location:
robera/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • robera/trunk/core/recommender-admin.php

    r2361704 r2362053  
    4848        $data = $request->get_body_params();
    4949        if (is_array($data)) {
    50             $className = sanitize_html_class($data["rel_section_class"]);
     50            $classNames = explode(" ", $data["rel_section_class"]);
     51            $arr = [];
     52            for ($i=0; $i < sizeof($classNames); $i++){
     53                $arr[$i] = sanitize_html_class($classNames[$i]);
     54            }
     55            $className = join(" ",$arr);
    5156            $checked = isset($data["related"]);
    5257            update_option(RecommenderPlugin::$RECOMMEND_ON_RELATED_PRODUCTS_OPTION_NAME, $checked);
  • robera/trunk/readme.txt

    r2361885 r2362053  
    44License: GPLv2 or later
    55License URI: https://www.gnu.org/licenses/gpl-2.0.html
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77Tested up to: 5.4.2
    88
  • robera/trunk/recommender.php

    r2361885 r2362053  
    1212 * Description:       This Plugins help you interact with your WooCommerce users smarter by recommend products and related-products to them according to their preferences.
    1313 * Text Domain:       robera-recommender
    14  * Version:           1.0.2
     14 * Version:           1.0.3
    1515 */
    1616
Note: See TracChangeset for help on using the changeset viewer.