From 3f4d84270e7ef1e1ac44eebb326bc4e148a63c0a Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 15 Aug 2016 10:16:04 +0200 Subject: [PATCH] FIx quotes in mails for "remote user" names --- lib/PlainTextParser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PlainTextParser.php b/lib/PlainTextParser.php index 6987a7e9a..f7535999d 100644 --- a/lib/PlainTextParser.php +++ b/lib/PlainTextParser.php @@ -118,7 +118,8 @@ protected function parseUntypedParameters($message) { */ protected function parseUserParameters($message) { return preg_replace_callback('/(.*?)<\/user>/', function($match) { - return $match[1]; + // We don't want HTML to work, but quote signs are okay. + return str_replace('"', '"', $match[1]); }, $message); }