Skip to content

Commit

Permalink
MDL-31745 blog: Fixed up encoding issue within blog
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja authored and Sam Hemelryk committed Mar 25, 2012
1 parent 8925a12 commit 038131c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions blog/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ function get_baseurl($filtertype, $filterselect) {
$querystring = '';
foreach($_GET as $var => $val) {
$var = clean_param($var, PARAM_ALPHANUM); // See MDL-22631
$val = clean_param($val, PARAM_CLEAN);
$val = urlencode(clean_param($val, PARAM_CLEAN));
if(!$first) {
$first = true;
if ($var != 'filterselect' && $var != 'filtertype') {
Expand All @@ -683,23 +683,22 @@ function get_baseurl($filtertype, $filterselect) {
}
} else {
if ($var != 'filterselect' && $var != 'filtertype') {
$querystring .= '&'.$var.'='.$val;
$querystring .= '&'.$var.'='.$val;
$hasparam = true;
}
}
}
if (isset($hasparam)) {
$querystring .= '&';
$querystring .= '&';
} else {
$querystring = '?';
}
} else {
$querystring = '?';
}

return strip_querystring(qualified_me()) . $querystring. 'filtertype='.
$filtertype.'&filterselect='.$filterselect.'&';

return s(strip_querystring(qualified_me()) . $querystring. 'filtertype='.
$filtertype.'&filterselect='.$filterselect.'&', true);
}

/**
Expand Down

0 comments on commit 038131c

Please sign in to comment.