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

Commit 5770f3c0 authored by jurgbohn's avatar jurgbohn

urldecode on $_GETs

parent 3c9b3849
......@@ -24,7 +24,7 @@ require_once("database.php");
require_once("templating.php");
require_once("data/Album.php");
$album = new Album($_GET['album'], $_GET['artist']);
$album = new Album(urldecode($_GET['album']), urldecode($_GET['artist']));
$smarty->assign("name", $album->name);
$smarty->assign("artist", $album->artist_name);
......
......@@ -26,7 +26,7 @@ require_once('data/sanitize.php');
require_once('data/Server.php');
require_once('data/TagCloud.php');
$artist = new Artist($_GET['artist']);
$artist = new Artist(urldecode($_GET['artist']));
$smarty->assign("name", $artist->name);
$smarty->assign("id", $artist->id);
......
......@@ -25,7 +25,7 @@ require_once('data/sanitize.php');
require_once('data/Server.php');
require_once('data/TagCloud.php');
$track = new Track($_GET['track'], $_GET['artist']);
$track = new Track(urldecode($_GET['track']), urldecode($_GET['artist']));
$smarty->assign("track", $track);
......
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