From 908a92e22a145f6670403baaa9395e77528c906e Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 12 Aug 2013 13:20:47 +0200 Subject: [PATCH] Fixed import of embedded attachments --- .../lib/system/importer/AbstractAttachmentImporter.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php index 95512042b6..cdf9c7d46f 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php @@ -76,10 +76,11 @@ class AbstractAttachmentImporter implements IImporter { } protected function fixEmbeddedAttachments($message, $oldID, $newID) { - if (StringUtil::indexOfIgnoreCase($message, '[attach]'.$oldID.'[/attach]') !== false || StringUtil::indexOfIgnoreCase($message, '[attach='.$oldID.']') !== false) { + if (StringUtil::indexOfIgnoreCase($message, '[attach]'.$oldID.'[/attach]') !== false || StringUtil::indexOfIgnoreCase($message, '[attach='.$oldID.']') !== false || StringUtil::indexOfIgnoreCase($message, '[attach='.$oldID.',') !== false) { $message = StringUtil::replaceIgnoreCase('[attach]'.$oldID.'[/attach]', '[attach]'.$newID.'[/attach]', $message); $message = StringUtil::replaceIgnoreCase('[attach='.$oldID.']', '[attach='.$newID.']', $message); - + $message = StringUtil::replaceIgnoreCase('[attach='.$oldID.',', '[attach='.$newID.',', $message); + return $message; } -- 2.20.1