From c4783b14d0a7a9a8c9b414a40d090aab14b95340 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 26 Jan 2012 18:19:44 +0000 Subject: [PATCH] Fix for bug #1446 Monotone-Parent: 64559b055668abe30f492544f049160b05cf7ab9 Monotone-Revision: 6bee8aebb26a5d4337cc6ae5400d1573f789be82 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2012-01-26T18:19:44 --- UI/PreferencesUI/English.lproj/Localizable.strings | 2 ++ UI/WebServerResources/UIxPreferences.js | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/UI/PreferencesUI/English.lproj/Localizable.strings b/UI/PreferencesUI/English.lproj/Localizable.strings index 47ab60c26..836df58d4 100644 --- a/UI/PreferencesUI/English.lproj/Localizable.strings +++ b/UI/PreferencesUI/English.lproj/Localizable.strings @@ -30,6 +30,8 @@ "Disable auto reply on" = "Disable auto reply on"; "Please specify your message and your email addresses for which you want to enable auto reply." = "Please specify your message and your email addresses for which you want to enable auto reply."; +""Your vacation message must not end with a single dot on a line." += "Your vacation message must not end with a single dot on a line."; "End date of your auto reply must be in the future." = "End date of your auto reply must be in the future."; diff --git a/UI/WebServerResources/UIxPreferences.js b/UI/WebServerResources/UIxPreferences.js index b31a28d95..fc2627bb6 100644 --- a/UI/WebServerResources/UIxPreferences.js +++ b/UI/WebServerResources/UIxPreferences.js @@ -34,6 +34,10 @@ function savePreferences(sender) { showAlertDialog(_("Please specify your message and your email addresses for which you want to enable auto reply.")); sendForm = false; } + if ($("autoReplyText").value.strip().endsWith('\n.')) { + showAlertDialog(_("Your vacation message must not end with a single dot on a line.")); + sendForm = false; + } if ($("enableVacationEndDate") && $("enableVacationEndDate").checked) { var endDate = new Date($("vacationEndDate_date").value); var now = new Date();