Merge branch 'MDL-80338' of https://github.com/paulholden/moodle
This commit is contained in:
+2
-2
@@ -619,7 +619,7 @@ class moodle_url {
|
||||
$uri .= '?' . $querystring;
|
||||
}
|
||||
if (!is_null($this->anchor)) {
|
||||
$uri .= '#'.$this->anchor;
|
||||
$uri .= '#' . rawurlencode($this->anchor);
|
||||
}
|
||||
|
||||
return $uri;
|
||||
@@ -639,7 +639,7 @@ class moodle_url {
|
||||
$uri .= $this->port ? ':'.$this->port : '';
|
||||
$uri .= $this->path ? $this->path : '';
|
||||
if ($includeanchor and !is_null($this->anchor)) {
|
||||
$uri .= '#' . $this->anchor;
|
||||
$uri .= '#' . rawurlencode($this->anchor);
|
||||
}
|
||||
|
||||
return $uri;
|
||||
|
||||
Reference in New Issue
Block a user