drop legacy paste format support

remove support for ZeroBin & v1 pastes and base64 & rawinflate libraries
This commit is contained in:
El RIDO
2025-07-05 11:06:30 +02:00
parent 03e0c81fbf
commit 6d5323e351
14 changed files with 18 additions and 1272 deletions
+1 -5
View File
@@ -190,11 +190,7 @@ class Paste extends AbstractModel
if (!array_key_exists('salt', $this->_data['meta'])) {
$this->get();
}
return hash_hmac(
$this->_conf->getKey('zerobincompatibility') ? 'sha1' : 'sha256',
$this->getId(),
$this->_data['meta']['salt']
);
return hash_hmac('sha256', $this->getId(), $this->_data['meta']['salt']);
}
/**