This commit is contained in:
Huong Nguyen
2024-02-22 11:17:52 +07:00
2 changed files with 17 additions and 2 deletions
+2 -2
View File
@@ -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;