mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-20 22:05:35 -04:00
introducing automatic purging of expired pastes, triggered by default at least 5 minutes apart, deleting a maximum of 10 pastes - resolves #3
This commit is contained in:
@@ -264,6 +264,7 @@ class privatebin
|
||||
// The user posts a standard paste.
|
||||
else
|
||||
{
|
||||
$this->_model->purge();
|
||||
$paste = $this->_model->getPaste();
|
||||
try {
|
||||
$paste->setData($data);
|
||||
|
||||
Reference in New Issue
Block a user