- Always use the database abstraction layer.
authorDries Buytaert
Mon, 15 Aug 2005 00:05:38 +0000 (00:05 +0000)
committerDries Buytaert
Mon, 15 Aug 2005 00:05:38 +0000 (00:05 +0000)
includes/session.inc

index ec4cd75..282d8ba 100644 (file)
@@ -51,7 +51,7 @@ function sess_write($key, $value) {
 }
 
 function sess_destroy($key) {
-  db_query("DELETE FROM {sessions} WHERE sid = '$key'");
+  db_query("DELETE FROM {sessions} WHERE sid = '%d'", $key);
 }
 
 function sess_gc($lifetime) {