Merge branch 'master' into drop-legacy-zerobin-support

This commit is contained in:
El RIDO
2025-07-17 08:00:09 +02:00
5 changed files with 23 additions and 0 deletions
+3
View File
@@ -160,6 +160,7 @@ class Database extends AbstractData
)
);
} catch (Exception $e) {
error_log('Error while attempting to insert a paste into the database: ' . $e->getMessage());
return false;
}
}
@@ -253,6 +254,7 @@ class Database extends AbstractData
try {
$data = Json::encode($comment);
} catch (Exception $e) {
error_log('Error while attempting to insert a comment into the database: ' . $e->getMessage());
return false;
}
$meta = $comment['meta'];
@@ -273,6 +275,7 @@ class Database extends AbstractData
)
);
} catch (Exception $e) {
error_log('Error while attempting to insert a comment into the database: ' . $e->getMessage());
return false;
}
}
+1
View File
@@ -456,6 +456,7 @@ class Filesystem extends AbstractData
self::PROTECTION_LINE . PHP_EOL . Json::encode($data)
);
} catch (Exception $e) {
error_log('Error while trying to store data to the filesystem at path "' . $filename . '": ' . $e->getMessage());
return false;
}
}