diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index 47ba8666d3..111d21f45b 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -168,7 +168,9 @@ function press_this_js_init() { } // Clean up the data being passed in -$title = stripslashes($_GET['t']); +$title = wp_specialchars(stripslashes($_GET['t'])); +$selection = wp_specialchars(stripslashes($_GET['s'])); +$url = clean_url($_GET['u']); if ( empty($_GET['tab']) ) { ?> @@ -285,7 +287,7 @@ exit; } jQuery(document).ready(function() { var img, img_tag, aspect, w, h, skip, i, strtoappend = ""; - var my_src = []; + var my_src = []; for (i = 0; i < my_src.length; i++) { img = new Image(); @@ -331,8 +333,8 @@ exit;

- +

@@ -353,7 +355,7 @@ exit;

- + @@ -384,7 +386,7 @@ exit;

- +
@@ -415,12 +417,12 @@ exit;

- +

(optional)') ?>

- +
@@ -450,10 +452,10 @@ exit; - +

@@ -463,7 +465,7 @@ exit;

(optional)') ?>

- +