From deec62915fc9eb2b0cd359945820752d1e7aa39e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 28 Apr 2017 09:31:58 +0200 Subject: [PATCH] Replace new line characters from the response name ...when the name was derived from the response text. --- program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/js/app.js b/program/js/app.js index 17b9b301c..bbb33570e 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -4585,7 +4585,7 @@ function rcube_webmail() return false; } if (!name) - name = text.substring(0,40); + name = text.replace(/[\r\n]+/g, ' ').substring(0,40); var lock = ref.display_message(ref.get_label('savingresponse'), 'loading'); ref.http_post('settings/responses', { _insert:1, _name:name, _text:text }, lock);