From 90b6820d0409c87420544e4c57e546c14f4a105d Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 11 Nov 2008 16:55:04 -0700 Subject: [PATCH] Fix comparison. --- framework/Mime/lib/Horde/Mime/Part.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/Mime/lib/Horde/Mime/Part.php b/framework/Mime/lib/Horde/Mime/Part.php index 8d3b4fbb0..80acdafb5 100644 --- a/framework/Mime/lib/Horde/Mime/Part.php +++ b/framework/Mime/lib/Horde/Mime/Part.php @@ -574,7 +574,8 @@ class Horde_Mime_Part public function &getPart($id) { $this_id = $this->getMimeId(); - if ($id == $this_id) { + /* Need strcmp() because, e.g., '2.0' == '2'. */ + if (strcmp($id, $this_id) === 0) { return $this; } -- 2.11.0