We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 707f4e9c authored by jurgbohn's avatar jurgbohn

Added url-encoding in getURL-functions. Fixed html-escaping on artist.tpl.

parent 5770f3c0
......@@ -123,7 +123,7 @@ class Album {
* @return A string containing the URL of this album
*/
function getURL() {
return Server::getAlbumURL($this->artist_name, $this->name);
return Server::getAlbumURL(urlencode($this->artist_name), urlencode($this->name));
}
}
......
......@@ -136,7 +136,7 @@ class Track {
}
function getURL() {
return Server::getTrackURL($this->artist_name, $this->album_name, $this->name);
return Server::getTrackURL(urlencode($this->artist_name), urlencode($this->album_name), urlencode($this->name));
}
}
......@@ -16,7 +16,9 @@
<dt>
<a rel="foaf:page" href="{$albums[i]->getURL()}">
<span{if $albums[i]->getAlbumArt() != '/i/qm50.png'} about="{$albums[i]->id}" rel="foaf:depiction"{/if}>
<img class="album photo" src="{$albums[i]->getAlbumArt()}" alt="{$albums[i]->name}|escape:'html'" title="{$albums[i]->name}|escape:'html'" width="160" />
<img class="album photo" src="{$albums[i]->getAlbumArt()}"
alt="{$albums[i]->name|escape:'html'}"
title="{$albums[i]->name|escape:'html'}" width="160" />
</span>
</a>
</dt>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment