[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1223] Don't double-quote session ID.
From: |
Clint Adams |
Subject: |
[Librefm-commits] [1223] Don't double-quote session ID. |
Date: |
Wed, 06 May 2009 13:48:35 +0000 |
Revision: 1223
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1223
Author: clint
Date: 2009-05-06 13:48:35 +0000 (Wed, 06 May 2009)
Log Message:
-----------
Don't double-quote session ID.
Modified Paths:
--------------
trunk/gnukebox/nowplaying/1.2/index.php
Modified: trunk/gnukebox/nowplaying/1.2/index.php
===================================================================
--- trunk/gnukebox/nowplaying/1.2/index.php 2009-05-06 03:44:39 UTC (rev
1222)
+++ trunk/gnukebox/nowplaying/1.2/index.php 2009-05-06 13:48:35 UTC (rev
1223)
@@ -31,7 +31,7 @@
$session_id = $_POST['s'];
$username = $mdb2->quote(usernameFromSID($session_id), "text");
-$sess = $mdb2->quote($session_id, "text");
+$MQsess = $mdb2->quote($session_id, "text");
$artist = $mdb2->quote($_POST['a'], "text");
if(isset($_POST['b'])) {
@@ -64,10 +64,10 @@
$mdb2->exec("DELETE FROM Now_Playing WHERE expires < " . time());
//Delete this user's last playing song (if any)
-$mdb2->exec("DELETE FROM Now_Playing WHERE sessionid = " . $mdb2->quote($sess,
"text"));
+$mdb2->exec("DELETE FROM Now_Playing WHERE sessionid = " . ($MQsess));
$mdb2->exec("INSERT INTO Now_Playing (sessionid, artist, album, track,
expires, mbid) VALUES ("
- . $sess . ", "
+ . $MQsess . ", "
. $artist . ", "
. $album . ", "
. $track . ", "
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1223] Don't double-quote session ID.,
Clint Adams <=