From: Vsevolod Stakhov Date: Mon, 5 Oct 2020 18:33:15 +0000 (+0100) Subject: [Fix] Fix smtp date syntax definition X-Git-Tag: 2.7~263 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bce410d5688a5c493c6ba3e5d18a87e2720dfc65;p=rspamd.git [Fix] Fix smtp date syntax definition Suggested by: @citrin --- diff --git a/src/ragel/smtp_date.rl b/src/ragel/smtp_date.rl index 35ed7499c..90c34b9de 100644 --- a/src/ragel/smtp_date.rl +++ b/src/ragel/smtp_date.rl @@ -180,13 +180,13 @@ minute = digit_2; second = digit_2; time_of_day = hour >Hour_Start %Hour_End ":" minute >Minute_Start %Minute_End (":" second >Second_Start %Second_End )?; - zone = FWS ("+" | "-") %TZ_Sign digit_4 >TZ_Offset_Start %TZ_Offset_End; + zone = ("+" | "-") %TZ_Sign digit_4 >TZ_Offset_Start %TZ_Offset_End; obs_zone = "UT" %TZ_UT | "GMT" %TZ_GMT | "EST" %TZ_EST | "EDT" %TZ_EDT | "CST" %TZ_CST | "CDT" %TZ_CDT | "MST" %TZ_MST | "MDT" %TZ_MDT | "PST" %TZ_PST | "PDT" %TZ_PDT | [a-iA-I] | [k-zK-Z]; - time = time_of_day %DT_End (zone | obs_zone %Obs_Zone_End) FWS*; + time = time_of_day %DT_End FWS (zone | obs_zone %Obs_Zone_End) FWS*; date_time = (day_of_week ",")? date time; }%%