From cabaa5a4373de9bbaad7c2b3fc02e55cd801a2c3 Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 2 Oct 2023 21:56:14 +0200 Subject: [PATCH] scripts plugin & language: fix logger messaging --- emhttp/plugins/dynamix.plugin.manager/scripts/language | 2 +- emhttp/plugins/dynamix.plugin.manager/scripts/plugin | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix.plugin.manager/scripts/language b/emhttp/plugins/dynamix.plugin.manager/scripts/language index b613f3c43..f735ee4e1 100755 --- a/emhttp/plugins/dynamix.plugin.manager/scripts/language +++ b/emhttp/plugins/dynamix.plugin.manager/scripts/language @@ -151,7 +151,7 @@ function download($url, $name, &$error) { // Deal with logging message. // function logger($message) { - shell_exec("logger $message"); + shell_exec("logger -- \"$message\""); } // Interpret a language file diff --git a/emhttp/plugins/dynamix.plugin.manager/scripts/plugin b/emhttp/plugins/dynamix.plugin.manager/scripts/plugin index e2a60ccc5..7f1c0c979 100755 --- a/emhttp/plugins/dynamix.plugin.manager/scripts/plugin +++ b/emhttp/plugins/dynamix.plugin.manager/scripts/plugin @@ -284,7 +284,7 @@ function filter_url($url) { // Deal with logging message. // function logger($message) { - shell_exec("logger $message"); + shell_exec("logger -- \"$message\""); } // Interpret a plugin file