projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
def9c44
)
Fix Horde_Mime::isChild() for X.0 type MIME IDs
author
Michael M Slusarz
<slusarz@curecanti.org>
Wed, 10 Feb 2010 08:42:02 +0000
(
01:42
-0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Wed, 10 Feb 2010 08:42:02 +0000
(
01:42
-0700)
framework/Mime/lib/Horde/Mime.php
patch
|
blob
|
history
diff --git
a/framework/Mime/lib/Horde/Mime.php
b/framework/Mime/lib/Horde/Mime.php
index
5472b04
..
1d6aea0
100644
(file)
--- a/
framework/Mime/lib/Horde/Mime.php
+++ b/
framework/Mime/lib/Horde/Mime.php
@@
-678,8
+678,12
@@
class Horde_Mime
*/
static public function isChild($base, $id)
{
+ if (substr($base, -2) == '.0') {
+ $base = substr($base, 0, -1);
+ }
+
return ((($base == 0) && ($id != 0)) ||
-
strpos(strval($id), strval($base)) === 0
);
+
(strpos(strval($id), strval($base)) === 0)
);
}
/**