From bc08c47f850ac470606ed5369451231a9ef2823f Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 18 Nov 2008 22:09:24 -0700 Subject: [PATCH] More correct check. --- framework/Mime/lib/Horde/Mime/Part.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/Mime/lib/Horde/Mime/Part.php b/framework/Mime/lib/Horde/Mime/Part.php index a26574732..cf655390f 100644 --- a/framework/Mime/lib/Horde/Mime/Part.php +++ b/framework/Mime/lib/Horde/Mime/Part.php @@ -642,7 +642,10 @@ class Horde_Mime_Part $this->_reindex = true; return true; } - } elseif (strpos($id, $partid) === 0) { + } + + if ((strpos($id, $partid . '.') === 0) || + (strrchr($partid, '.') === '.0')) { return $this->_parts[$val]->_partAction($id, $action, $mime_part); } } -- 2.11.0