mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-24 23:09:28 -05:00
add missing check for non-expiring pastes, fixes #149
This commit is contained in:
parent
577031cc1f
commit
f6b8ee3e20
@ -1,11 +1,12 @@
|
|||||||
# PrivateBin version history
|
# PrivateBin version history
|
||||||
|
|
||||||
* **next (not yet released)**
|
* **next (not yet released)**
|
||||||
* ADDED: Translations for Italian
|
* ADDED: Translations for Italian and Russian
|
||||||
* ADDED: Loading message displayed until decryption succeeded for slower (in terms of CPU or network) systems
|
* ADDED: Loading message displayed until decryption succeeded for slower (in terms of CPU or network) systems
|
||||||
* CHANGED: Using modal dialog to request password input instead of native JS input window (#69)
|
* CHANGED: Using modal dialog to request password input instead of native JS input window (#69)
|
||||||
* CHANGED: Suppressed referrer HTTP header sending when following links in a paste or comment (#96) and added additional HTTP headers for XSS mitigation (#91)
|
* CHANGED: Suppressed referrer HTTP header sending when following links in a paste or comment (#96) and added additional HTTP headers for XSS mitigation (#91)
|
||||||
* CHANGED: Updated random_compat and jQuery libraries
|
* CHANGED: Updated random_compat and jQuery libraries
|
||||||
|
* FIXED: Automatic purging deleting non-expiring pastes, when using database store (#149)
|
||||||
* **1.0 (2016-08-25)**
|
* **1.0 (2016-08-25)**
|
||||||
* ADDED: Translations for Slowene and Chinese
|
* ADDED: Translations for Slowene and Chinese
|
||||||
* ADDED: re-introduced (optional) URL shortener support, which was removed back in version 0.16 for privacy concerns
|
* ADDED: re-introduced (optional) URL shortener support, which was removed back in version 0.16 for privacy concerns
|
||||||
|
@ -417,7 +417,7 @@ class Database extends AbstractData
|
|||||||
$pastes = array();
|
$pastes = array();
|
||||||
$rows = self::_select(
|
$rows = self::_select(
|
||||||
'SELECT dataid FROM ' . self::_sanitizeIdentifier('paste') .
|
'SELECT dataid FROM ' . self::_sanitizeIdentifier('paste') .
|
||||||
' WHERE expiredate < ? LIMIT ?', array(time(), $batchsize)
|
' WHERE expiredate < ? AND expiredate != ? LIMIT ?', array(time(), 0, $batchsize)
|
||||||
);
|
);
|
||||||
if (count($rows)) {
|
if (count($rows)) {
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
|
Loading…
Reference in New Issue
Block a user