From 01a3ab32fd9b2396f45968b3aa2bd1dbfe26d9bf Mon Sep 17 00:00:00 2001 From: Mrten Date: Fri, 27 Sep 2013 12:13:44 +0200 Subject: [PATCH] Fix missing quote --- ykksm-decrypt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykksm-decrypt.php b/ykksm-decrypt.php index b99d947..4d0f221 100644 --- a/ykksm-decrypt.php +++ b/ykksm-decrypt.php @@ -75,7 +75,7 @@ else { if (!$use_oci) { // use OR for active because some databases do support booleans (sqlite) and some do not. $sql = "SELECT aeskey, internalname FROM yubikeys" . - " WHERE publicname = :id AND (active = 'true' OR active=1); + " WHERE publicname = :id AND (active = 'true' OR active=1)"; $sth = $dbh->prepare($sql); if ($sth === false) {