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

Commit e7411242 authored by jurgbohn's avatar jurgbohn

Removed over-zealous quoting.

parent 1d8e191d
......@@ -22,8 +22,6 @@ function usernameFromSID($session_id) {
function createArtistIfNew($artist) {
global $mdb2;
$artist = $mdb2->quote($artist, 'text');
$res = $mdb2->query("SELECT name FROM Artist WHERE name = " . ($artist));
if(PEAR::isError($res)) {
die("FAILED " . $res->getMessage());
......@@ -41,9 +39,6 @@ function createArtistIfNew($artist) {
function createAlbumIfNew($artist, $album) {
global $mdb2;
$artist = $mdb2->quote($artist, 'text');
$album = $mdb2->quote($album, 'text');
$res = $mdb2->query("SELECT name FROM Album WHERE name = " . ($album));
if(PEAR::isError($res)) {
die("FAILED " . $res->getMessage());
......@@ -61,10 +56,6 @@ function createAlbumIfNew($artist, $album) {
function createTrackIfNew($artist, $album, $track, $mbid) {
global $mdb2;
$artist = $mdb2->quote($artist, 'text');
$album = $mdb2->quote($album, 'text');
$track = $mdb2->quote($track, 'text');
$mbid = $mdb2->quote($mbid, 'text');
$res = $mdb2->query("SELECT name FROM Track WHERE name = " . ($track) . " AND artist = " . ($artist));
if(PEAR::isError($res)) {
die("FAILED " . $res->getMessage());
......
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