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

Commit

Permalink
specify columns on insert to be more robust regarding schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yahesh committed Feb 1, 2022
1 parent 2e26969 commit 50b7e0e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.30b1 (2022-02-01)

* specify columns on insert to be more robust regarding schema changes (thanks to @jonico)

# 0.30b0 (2021-12-29)

* increased PBKDF2 iteration count for v00 encryption from 10000 to 512000
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

# Shared-Secrets v0.30b0
# Shared-Secrets v0.30b1
#
# Copyright (c) 2016-2021, SysEleven GmbH
# Copyright (c) 2016-2022, SysEleven GmbH
# All rights reserved.
#
# This page allows you to share a secret through a secret sharing link.
Expand Down
2 changes: 1 addition & 1 deletion lib/shared-secrets.def.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

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

# define page names
define("HOW_PAGE_NAME", "how");
Expand Down

0 comments on commit 50b7e0e

Please sign in to comment.