From 6d6724bd529493c448d5aa02e70aee9aaff4f2c3 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 7 Dec 2025 07:05:25 +0200 Subject: [PATCH] push-notification: Fix using %variables in push_notification_ox_url --- src/plugins/push-notification/push-notification-settings.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/push-notification/push-notification-settings.c b/src/plugins/push-notification/push-notification-settings.c index 11d89474b5..729c7d4a80 100644 --- a/src/plugins/push-notification/push-notification-settings.c +++ b/src/plugins/push-notification/push-notification-settings.c @@ -103,7 +103,9 @@ push_notification_ox_settings_check(void *_set, pool_t pool, struct push_notification_ox_settings *set = _set; const char *error; - if (set->url[0] != '\0') { + /* value can be set_value_unknown in config/doveconf if it contains + variables that couldn't be expanded. */ + if (set->url[0] != '\0' && set->url != set_value_unknown) { if (http_url_parse(set->url, NULL, HTTP_URL_ALLOW_USERINFO_PART, pool, &set->parsed_url, &error) < 0) { *error_r = t_strdup_printf( -- 2.47.3