git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9830 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
devjin 2011-11-17 02:58:35 +00:00
parent 7a9430263e
commit 0a80a5f9e3

View file

@ -941,7 +941,7 @@ class Context {
parse_str($parsedUrl['query'], $output);
$encode_queries = array();
foreach($output as $key=>$value){
if (!preg_match('/&[a-z]{2,};/', $value)){
if (!preg_match('/&([a-z]{2,}|#\d+);/', $value)){
$value = htmlspecialchars($value);
}
$encode_queries[] = $key.'='.$value;