From 0e2d7b8ec9a5c194f6eeed5f13e7acb69dea9089 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 23 Oct 2011 14:14:07 +0200 Subject: [PATCH] Fix misdetection of filenames containing spaces. Signed-off-by: Florent Bruneau --- banana/mimepart.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/banana/mimepart.inc.php b/banana/mimepart.inc.php index c29221e..b072242 100644 --- a/banana/mimepart.inc.php +++ b/banana/mimepart.inc.php @@ -174,7 +174,7 @@ class BananaMimePart $disposition = $this->getHeader('content-disposition', '/(inline|attachment)/i'); $boundary = $this->getHeader('content-type', '/boundary="?([^ "]+?)"?\s*(;|$)/i'); $charset = strtolower($this->getHeader('content-type', '/charset="?([^ "]+?)"?\s*(;|$)/i')); - $filename = $this->getHeader('content-disposition', '/filename="?([^ "]+?)"?\s*(;|$)/i'); + $filename = $this->getHeader('content-disposition', '/filename="?([^"]+?)"?\s*(;|$)/i'); $format = strtolower($this->getHeader('content-type', '/format="?([^ "]+?)"?\s*(;|$)/i')); $id = $this->getHeader('content-id', '/<(.*?)>/'); $sign_protocole = strtolower($this->getHeader('content-type', '/protocol="?([^ "]+?)"?\s*(;|$)/i')); -- 2.1.4