From 86d3dbb81f842c4c686426e83be55d21038f6755 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 15 Jan 2006 23:42:10 +0000 Subject: [PATCH] wp_specialchars the request uri when contructing paging links. fixes #1686 git-svn-id: http://svn.automattic.com/wordpress/trunk@3440 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-links.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index 2d4c5f3939..d647fa0754 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -382,7 +382,7 @@ function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat= function get_pagenum_link($pagenum = 1) { global $wp_rewrite; - $qstr = $_SERVER['REQUEST_URI']; + $qstr = wp_specialchars($_SERVER['REQUEST_URI']); $page_querystring = "paged"; $page_modstring = "page/";