[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1224] Don't double-quote session ID.
From: |
Clint Adams |
Subject: |
[Librefm-commits] [1224] Don't double-quote session ID. |
Date: |
Wed, 06 May 2009 13:48:52 +0000 |
Revision: 1224
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1224
Author: clint
Date: 2009-05-06 13:48:51 +0000 (Wed, 06 May 2009)
Log Message:
-----------
Don't double-quote session ID.
Modified Paths:
--------------
branches/stable/gnukebox/nowplaying/1.2/index.php
Modified: branches/stable/gnukebox/nowplaying/1.2/index.php
===================================================================
--- branches/stable/gnukebox/nowplaying/1.2/index.php 2009-05-06 13:48:35 UTC
(rev 1223)
+++ branches/stable/gnukebox/nowplaying/1.2/index.php 2009-05-06 13:48:51 UTC
(rev 1224)
@@ -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] [1224] Don't double-quote session ID.,
Clint Adams <=