1
0
mirror of https://github.com/Yubico/yubikey-ksm.git synced 2025-03-03 00:29:23 +01:00

137 Commits

Author SHA1 Message Date
Mrten
01a3ab32fd Fix missing quote 2013-09-27 12:13:44 +02:00
Mrten
e2975808a5 Use prepared statement for query
This commit uses a prepared statement for the querying of the id. It's a bit cleaner and avoids the use of addslashes(). PDO does the preparing of the statements for databases that do not support it, so that should be OK. 

This commit changes the query to have an or for active=1 and active=true because sqlite does not support active=1 and returns not results.

This commit tests if $sth->fetch() succeeded before using the result as as array to prevent notices.
2013-09-27 12:12:08 +02:00
Mrten
113c3193ff Use GET instead of REQUEST
REQUEST is an unholy combination of GET, POST and COOKIE, and the order of combining is user-configurable on every server. To prevent surprises, one should be explicit.
2013-09-27 11:38:05 +02:00
Mrten
fff4394ca7 First test for parameter, then use it
One should test if a parameter exists before using it instead of letting the PHP auto-type conversion magic have its way with it.
2013-09-27 11:34:51 +02:00
Simon Josefsson
cc6b292fe0 Bump doc/. yubikey-ksm-1.14 2013-09-18 14:34:03 +02:00
Simon Josefsson
ff62d2bb6d Version 1.14. 2013-09-18 14:33:06 +02:00
Simon Josefsson
47797e4fda Fix release rule. 2013-09-18 14:32:52 +02:00
Simon Josefsson
bb077e987e Add. 2013-09-18 14:31:32 +02:00
Simon Josefsson
bcdfe0235b Add. 2013-09-05 20:26:18 +02:00
Remi Mollon
84b04e2839 oracle support 2013-07-01 17:32:35 +02:00
Simon Josefsson
9ecb4f9b5d Improve README. Dist it. 2013-04-22 12:16:06 +02:00
Simon Josefsson
765509f545 Bump version. 2013-04-17 19:01:50 +02:00
Simon Josefsson
9e3e2db6a9 Improve release target. 2013-04-17 17:52:12 +02:00
Simon Josefsson
165535721b Version 1.13. yubikey-ksm-1.13 2013-04-17 17:51:12 +02:00
Simon Josefsson
0f8a05eed7 Updated release procedure. 2013-04-17 17:49:53 +02:00
Simon Josefsson
88580c27b4 Fix dist target. 2013-04-17 17:49:18 +02:00
Dain Nilsson
a62d6543b9 Updated release target. 2013-04-10 09:49:12 +02:00
Dain Nilsson
e9d3b4b525 Merge pull request #2 from colinnewell/master
The makefile has spaces where there should be tabs
2013-03-05 00:18:32 -08:00
Colin Newell
9d1ae3e68e Fixed rogue whitespace 2013-03-03 11:36:38 +00:00
Dain Nilsson
7fcb99e41b Fixed homepage building in make release. 2013-02-05 11:07:13 +01:00
Dain Nilsson
38e8aefa71 Updated NEWS for 1.12 release. yubikey-ksm-1.12 2013-02-05 11:01:04 +01:00
Dain Nilsson
e1310e4144 Updated copyright headers. 2013-02-04 17:41:13 +01:00
Dain Nilsson
3fff41fb45 Added .gitignore with build artifacts. 2013-02-04 16:56:01 +01:00
Simon Josefsson
64b4881bc2 Update copyright information. 2013-02-04 16:53:40 +01:00
Simon Josefsson
6f8532441e Fix ykval link. 2013-02-04 16:41:58 +01:00
Dain Nilsson
f9c4256c31 Updated Makefile and NEWS post 1.11. 2013-01-31 15:25:10 +01:00
Dain Nilsson
71a346f4e0 Updated NEWS for 1.11. yubikey-ksm-1.11 2013-01-31 15:18:28 +01:00
Dain Nilsson
581fb67289 Added missing manprefix to Makefile. 2013-01-31 15:14:55 +01:00
Dain Nilsson
35b68f93e1 Updated Makefile and NEWS post 1.10 release. 2013-01-31 14:55:27 +01:00
Dain Nilsson
1f7a3a42a4 Updated NEWS for 1.10 yubikey-ksm-1.10 2013-01-31 14:50:42 +01:00
Dain Nilsson
62a26e60ee Added quoting of versions for Jekyll 2013-01-31 14:11:58 +01:00
Dain Nilsson
11ab282f53 Makefile fixes. 2013-01-30 16:52:16 +01:00
Dain Nilsson
3a23c4d783 Makefile now installs man pages. 2013-01-30 11:39:07 +01:00
Dain Nilsson
b0c556e5b8 Added missing default db type. 2013-01-28 15:10:59 +01:00
Dain Nilsson
29dd8a2f47 Fixed scripts failing when db config exists but isn't readable. 2013-01-28 14:49:28 +01:00
Dain Nilsson
dcc017f5af Use yubikey-ksm instead of ykksm in paths, configuration in /etc/yubico/ksm 2013-01-28 13:18:59 +01:00
Dain Nilsson
5797d005fc Updated versions post 1.9. 2013-01-23 17:44:15 +01:00
Dain Nilsson
f97aa3ec13 Version 1.9 yubikey-ksm-1.9 2013-01-23 16:44:34 +01:00
Dain Nilsson
deb4070f4e Renamed hex2bin to yubi_hex2bin. 2013-01-23 16:03:34 +01:00
Dain Nilsson
e45bc5f088 Updated versions post 1.8 release. 2013-01-23 15:56:34 +01:00
Dain Nilsson
742e3ffbc9 Updated NEWS for 1.8 release. yubikey-ksm-1.8 2013-01-21 16:23:49 +01:00
Dain Nilsson
e4da82363b Added ChangeLog generation to make dist. 2013-01-21 11:32:38 +01:00
Dain Nilsson
6632cce106 Fixed formatting of releases.html 2012-12-21 15:04:16 +01:00
Dain Nilsson
2801b78268 Updated versions post 1.7 release. 2012-12-21 13:44:54 +01:00
Dain Nilsson
4ff4cd8280 Version 1.7. yubikey-ksm-1.7 2012-12-21 13:39:04 +01:00
Dain Nilsson
2494398d53 Updated NEWS 2012-12-21 13:34:47 +01:00
Dain Nilsson
6279082493 Added support for reading db config from /etc/ykksm/ 2012-12-21 13:15:04 +01:00
Dain Nilsson
d43308eb56 Replaced the deprecated use of 'mcrypt_ecb' with 'mdecrypt_generic' 2012-12-20 16:44:02 +01:00
Dain Nilsson
69aaab6193 Added man pages requirement to install. 2012-12-20 15:20:54 +01:00
Dain Nilsson
3a75a5741c Added distclean to Makefile 2012-12-20 14:39:56 +01:00