Skip to content
This repository was archived by the owner on Mar 16, 2023. It is now read-only.

Commit 50b7e0e

Browse files
committed
specify columns on insert to be more robust regarding schema changes
1 parent 2e26969 commit 50b7e0e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.30b1 (2022-02-01)
2+
3+
* specify columns on insert to be more robust regarding schema changes (thanks to @jonico)
4+
15
# 0.30b0 (2021-12-29)
26

37
* increased PBKDF2 iteration count for v00 encryption from 10000 to 512000

index.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
# Shared-Secrets v0.30b0
3+
# Shared-Secrets v0.30b1
44
#
5-
# Copyright (c) 2016-2021, SysEleven GmbH
5+
# Copyright (c) 2016-2022, SysEleven GmbH
66
# All rights reserved.
77
#
88
# This page allows you to share a secret through a secret sharing link.

lib/shared-secrets.def.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# define MySQL queries
1515
define("MYSQL_READ", "SELECT COUNT(*) FROM secrets WHERE fingerprint = ?");
16-
define("MYSQL_WRITE", "INSERT IGNORE INTO secrets VALUES (?, ?, CURRENT_TIMESTAMP)");
16+
define("MYSQL_WRITE", "INSERT IGNORE INTO secrets (keyid, fingerprint, time) VALUES (?, ?, CURRENT_TIMESTAMP)");
1717

1818
# define page names
1919
define("HOW_PAGE_NAME", "how");

0 commit comments

Comments
 (0)