Yoast Breadcrumbs - Version 0.8.5

Version Description

  • Fixed XSS vulnerability in search result pages breadcrumbs.
Download this release

Release Info

Developer joostdevalk
Plugin Icon wp plugin Yoast Breadcrumbs
Version 0.8.5
Comparing to
See all releases

Code changes from version 0.8.4 to 0.8.5

Files changed (2) hide show
  1. readme.txt +5 -2
  2. yoast-breadcrumbs.php +3 -3
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: joostdevalk
3
  Donate link: http://yoast.com/donate/
4
  Tags: rss, footer
5
  Requires at least: 2.2
6
- Tested up to: 2.8.2
7
- stable tag: 0.8.4
8
 
9
  Easily add breadcrumbs to your template!
10
 
@@ -28,6 +28,9 @@ More info:
28
 
29
  == Changelog ==
30
 
 
 
 
31
  = 0.8.4 =
32
  * Upgraded Backend class to 0.2.
33
 
3
  Donate link: http://yoast.com/donate/
4
  Tags: rss, footer
5
  Requires at least: 2.2
6
+ Tested up to: 2.9.1
7
+ stable tag: 0.8.5
8
 
9
  Easily add breadcrumbs to your template!
10
 
28
 
29
  == Changelog ==
30
 
31
+ = 0.8.5 =
32
+ * Fixed XSS vulnerability in search result pages breadcrumbs.
33
+
34
  = 0.8.4 =
35
  * Upgraded Backend class to 0.2.
36
 
yoast-breadcrumbs.php CHANGED
@@ -2,11 +2,11 @@
2
  Plugin Name: Yoast Breadcrumbs
3
  Plugin URI: http://yoast.com/wordpress/breadcrumbs/
4
  Description: Outputs a fully customizable breadcrumb path.
5
- Version: 0.8.4
6
  Author: Joost de Valk
7
  Author URI: http://yoast.com/
8
 
9
- Copyright (C) 2008-2009, Joost de Valk
10
  All rights reserved.
11
 
12
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -247,7 +247,7 @@ function yoast_breadcrumb($prefix = '', $suffix = '', $display = true) {
247
  $user = get_userdatabylogin($wp_query->query_vars['author_name']);
248
  $output .= bold_or_not($opt['archiveprefix']." ".$user->display_name);
249
  } elseif ( is_search() ) {
250
- $output .= bold_or_not($opt['searchprefix'].' "'.get_search_query().'"');
251
  } else if ( is_tax() ) {
252
  $taxonomy = get_taxonomy ( get_query_var('taxonomy') );
253
  $term = get_query_var('term');
2
  Plugin Name: Yoast Breadcrumbs
3
  Plugin URI: http://yoast.com/wordpress/breadcrumbs/
4
  Description: Outputs a fully customizable breadcrumb path.
5
+ Version: 0.8.5
6
  Author: Joost de Valk
7
  Author URI: http://yoast.com/
8
 
9
+ Copyright (C) 2008-2010, Joost de Valk
10
  All rights reserved.
11
 
12
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
247
  $user = get_userdatabylogin($wp_query->query_vars['author_name']);
248
  $output .= bold_or_not($opt['archiveprefix']." ".$user->display_name);
249
  } elseif ( is_search() ) {
250
+ $output .= bold_or_not($opt['searchprefix'].' "'.stripslashes(strip_tags(get_search_query())).'"');
251
  } else if ( is_tax() ) {
252
  $taxonomy = get_taxonomy ( get_query_var('taxonomy') );
253
  $term = get_query_var('term');