Skip to content
Snippets Groups Projects
Commit 4875c354 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

avoid double encoding of generated URLs

getLink() now no longer escapes ampersands - this is task of the code
producing the HTML. When using asHtmlLink(), buildAttributes() will take
care of the escaping for you.
parent e5226905
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,8 @@ abstract class AbstractItem {
* Basically runs wl() on $id and $params. However if the ID is a hash it is used directly
* as the link
*
* Please note that the generated URL is *not* XML escaped.
*
* @see wl()
* @return string
*/
......@@ -100,7 +102,7 @@ abstract class AbstractItem {
if($this->id[0] == '#') {
return $this->id;
} else {
return wl($this->id, $this->params);
return wl($this->id, $this->params, false, '&');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment