From 5f01e987f25704020e02c95755cec430313b1cd5 Mon Sep 17 00:00:00 2001 From: lars Date: Wed, 19 Aug 2009 03:12:27 +0000 Subject: [PATCH] fixed editing of text files for multi-line texts (Closes: #62) --- changelog | 3 +++ ezmlm-web.cgi | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog b/changelog index 47c6d7f..a603477 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,6 @@ +Version 3.3.2 - ? + * fixed editing of multi-line text files (Closes: #62) + Version 3.3.1 - 10/14/02008 * generate gnupg keys in the background to avoid timeouts * remove authorization info during list deletion (Closes: #54) diff --git a/ezmlm-web.cgi b/ezmlm-web.cgi index e94dcb3..62dda83 100755 --- a/ezmlm-web.cgi +++ b/ezmlm-web.cgi @@ -2656,8 +2656,8 @@ sub save_text { $content = $q->param('content'); $charset = split(':',$list->get_charset()); $charset = 'us-ascii' if ($charset eq ''); - # untaint 'content' unconditionally - $content =~ m/^(.*)$/; + # untaint 'content' unconditionally (treating the whole string as a single line) + $content =~ m/^(.*)$/s; $content = $1; my $content_encoded; eval { $content_encoded = Encode::encode($charset, $content); };