From: Timo Sirainen Date: Sun, 7 Dec 2025 05:05:25 +0000 (+0200) Subject: push-notification: Fix using %variables in push_notification_ox_url X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fmain;p=thirdparty%2Fdovecot%2Fcore.git push-notification: Fix using %variables in push_notification_ox_url --- 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(