From 353b0b2b5c139590700d50b88467e55580240d47 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@3440 602fd350-edb4-49c9-b593-d223f7449a82 --- 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/";