Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.
fixing decoding of header value from database (#850)
Christopher McAvaney3a7c10a1473f
diff --git a/endpoints/cronjobs/sendnotifications.php b/endpoints/cronjobs/sendnotifications.phpindex 8acfb95..429f05f 100644--- a/endpoints/cronjobs/sendnotifications.php+++ b/endpoints/cronjobs/sendnotifications.php@@ -630,7 +630,7 @@ while ($userToNotify = $usersToNotify->fetchArray(SQLITE3_ASSOC)) {// Add headers if they existif (!empty($webhook['headers'])) {- $customheaders = preg_split("/\r\n|\n|\r/", $webhook['headers']);+ $customheaders = json_decode($webhook["headers"], true);curl_setopt($ch, CURLOPT_HTTPHEADER, $customheaders);}@@ -668,4 +668,4 @@ while ($userToNotify = $usersToNotify->fetchArray(SQLITE3_ASSOC)) {}-?>\ No newline at end of file+?>