Changeset 1169560
- Timestamp:
- 05/28/2015 06:58:09 PM (11 years ago)
- Location:
- wp-useragent/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
wp-useragent.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-useragent/trunk/readme.txt
r1014529 r1169560 4 4 Tags: useragent, user-agent, user agent, web, browser, web browser, operating system, platform, os, mac, apple, windows, win, linux, phone 5 5 Requires at least: 2.0 6 Tested up to: 4. 07 Stable tag: 1.0. 56 Tested up to: 4.2.2 7 Stable tag: 1.0.6 8 8 9 9 == Description == … … 66 66 67 67 == Changelog == 68 69 = v1.0.6 = 70 * Fixed XSS security vulnerability 71 68 72 69 73 = v1.0.5 = … … 597 601 == Upgrade Notice == 598 602 599 = v1.0. 5=600 * Added height and width attributes to icons to fix an issue with 'Simple Lazyload' (props: Yu)603 = v1.0.6 = 604 * Fixed XSS security vulnerability -
wp-useragent/trunk/wp-useragent.php
r1014529 r1169560 4 4 Plugin URI: http://kyleabaker.com/goodies/coding/wp-useragent/ 5 5 Description: A simple User-Agent detection plugin that lets you easily insert icons and/or textual web browser and operating system details with each comment. 6 Version: 1.0. 56 Version: 1.0.6 7 7 Author: Kyle Baker 8 8 Author URI: http://kyleabaker.com/ … … 11 11 */ 12 12 13 /* Copyright 2008-201 4Kyle Baker (email: [email protected])13 /* Copyright 2008-2015 Kyle Baker (email: [email protected]) 14 14 //Copyright 2008 Fernando Briano (email : [email protected]) 15 15 … … 129 129 130 130 // Where should we display the useragent output? 131 $useragent= $comment->comment_agent;131 $useragent=wp_strip_all_tags($comment->comment_agent, false); 132 132 if($ua_output_location=="before") 133 133 { … … 245 245 246 246 // Attach the full ua string to the output. 247 $ua.="<small>".htmlspecialchars( $comment->comment_agent)."</small>";247 $ua.="<small>".htmlspecialchars(wp_strip_all_tags($comment->comment_agent, false))."</small>"; 248 248 } 249 249 … … 263 263 { 264 264 get_currentuserinfo(); 265 $useragent= $comment->comment_agent;265 $useragent=wp_strip_all_tags($comment->comment_agent, false); 266 266 display_useragent(); 267 267 }
Note: See TracChangeset
for help on using the changeset viewer.