mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-22 00:00:54 -04:00
remove the old keys, if they are still stored
This commit is contained in:
parent
a9f1926b96
commit
b2db26998d
2 changed files with 8 additions and 2 deletions
|
@ -47,6 +47,12 @@ class Paste extends AbstractModel
|
|||
$data['meta']['time_to_live'] = $data['meta']['expire_date'] - time();
|
||||
unset($data['meta']['expire_date']);
|
||||
}
|
||||
if (array_key_exists('created', $data['meta'])) {
|
||||
unset($data['meta']['created']);
|
||||
}
|
||||
if (array_key_exists('postdate', $data['meta'])) {
|
||||
unset($data['meta']['postdate']);
|
||||
}
|
||||
|
||||
// check if non-expired burn after reading paste needs to be deleted
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue