mirror of
https://github.com/DumbWareio/DumbDrop.git
synced 2025-10-22 23:31:57 +00:00
fix: Update Apprise notification command execution method
This commit is contained in:
@@ -616,9 +616,10 @@ async function sendNotification(filename, fileSize) {
|
||||
.replace('{size}', formattedSize)
|
||||
.replace('{storage}', totalStorage);
|
||||
|
||||
// Use array syntax to avoid shell interpretation
|
||||
await execAsync(['apprise', APPRISE_URL, '-b', message], {
|
||||
shell: false
|
||||
// Use a string command instead of an array
|
||||
const command = `apprise ${APPRISE_URL} -b "${message}"`;
|
||||
await execAsync(command, {
|
||||
shell: true
|
||||
});
|
||||
|
||||
log.info(`Notification sent for: ${sanitizedFilename} (${formattedSize}, Total storage: ${totalStorage})`);
|
||||
|
Reference in New Issue
Block a user