Plugin Directory

Changeset 3380322


Ignore:
Timestamp:
10/17/2025 07:37:22 PM (6 months ago)
Author:
remko
Message:

v0.10

Location:
wp-bookwidgets/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-bookwidgets/trunk/readme.txt

    r3045544 r3380322  
    5656== Changelog ==
    5757
     58### 0.10
     59
     60- Sanitize `code` parameter.
     61
    5862### 0.9
    5963
  • wp-bookwidgets/trunk/wp-bookwidgets.php

    r3045544 r3380322  
    55 * Plugin URI: https://github.com/remko/wp-bookwidgets
    66 * Description: Integrate BookWidgets widgets in your WordPress site
    7  * Version: 0.9
     7 * Version: 0.10
    88 * Author: Remko Tronçon
    9  * Author URI: https://el-tramo.be
     9 * Author URI: https://mko.re
    1010 * License: MIT
    1111 * License URI: https://opensource.org/licenses/MIT
     
    6666    return $path;
    6767  }
     68  $code = sanitize_text_field($atts["code"]);
    6869  if (use_lti()) {
    69     return "/lti/play/{$atts['code']}";
    70   }
    71   return "/play/{$atts['code']}";
     70    return "/lti/play/{$code}";
     71  }
     72  return "/play/{$code}";
    7273}
    7374
     
    157158    'url' => null,
    158159  ], $atts);
    159   $text = !empty($content) ? $content : (!empty($a["url"]) ? $a["url"] : $a["code"]);
     160  $text = sanitize_text_field(!empty($content) ? $content : (!empty($a["url"]) ? $a["url"] : $a["code"]));
    160161  $url = use_lti()
    161162    ? home_url("?bw_link=" . urlencode(get_play_path($a)))
Note: See TracChangeset for help on using the changeset viewer.