From 2ed0873cd2cee1fcdec6f9149e69f4fefd152575 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 16 May 2008 23:20:56 +0000 Subject: [PATCH] Some escaping. see #6813 git-svn-id: http://svn.automattic.com/wordpress/trunk@7945 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/press-this.php | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) 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)') ?>

- +