Changeset 3380322
- Timestamp:
- 10/17/2025 07:37:22 PM (6 months ago)
- Location:
- wp-bookwidgets/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wp-bookwidgets.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-bookwidgets/trunk/readme.txt
r3045544 r3380322 56 56 == Changelog == 57 57 58 ### 0.10 59 60 - Sanitize `code` parameter. 61 58 62 ### 0.9 59 63 -
wp-bookwidgets/trunk/wp-bookwidgets.php
r3045544 r3380322 5 5 * Plugin URI: https://github.com/remko/wp-bookwidgets 6 6 * Description: Integrate BookWidgets widgets in your WordPress site 7 * Version: 0. 97 * Version: 0.10 8 8 * Author: Remko Tronçon 9 * Author URI: https:// el-tramo.be9 * Author URI: https://mko.re 10 10 * License: MIT 11 11 * License URI: https://opensource.org/licenses/MIT … … 66 66 return $path; 67 67 } 68 $code = sanitize_text_field($atts["code"]); 68 69 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}"; 72 73 } 73 74 … … 157 158 'url' => null, 158 159 ], $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"])); 160 161 $url = use_lti() 161 162 ? home_url("?bw_link=" . urlencode(get_play_path($a)))
Note: See TracChangeset
for help on using the changeset viewer.