From: Michael M Slusarz Date: Wed, 7 Jul 2010 04:53:51 +0000 (-0600) Subject: Make sure these entries are not confused for IMAP mailboxes X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ed8c2492ceb46506afdeb99bf37c31463199bae4;p=horde.git Make sure these entries are not confused for IMAP mailboxes --- diff --git a/imp/lib/IMP.php b/imp/lib/IMP.php index fd23469b8..879fe1c52 100644 --- a/imp/lib/IMP.php +++ b/imp/lib/IMP.php @@ -258,7 +258,7 @@ class IMP foreach ($tasklists as $id => $tasklist) { $tasklist_list[] = array( 'l' => Horde_Text_Filter::filter($tasklist->get('name'), 'space2html', array('charset' => Horde_Nls::getCharset(), 'encode' => true)), - 'v' => '_tasklist_' . $id + 'v' => '\0tasklist_' . $id ); } $t->set('tasklist', $tasklist_list); @@ -277,7 +277,7 @@ class IMP foreach ($notepads as $id => $notepad) { $notepad_list[] = array( 'l' => Horde_Text_Filter::filter($notepad->get('name'), 'space2html', array('charset' => Horde_Nls::getCharset(), 'encode' => true)), - 'v' => '_notepad_' . $id + 'v' => '\0notepad_' . $id ); } $t->set('notepad', $notepad_list); diff --git a/imp/lib/Message.php b/imp/lib/Message.php index c651f80dc..56b698d89 100644 --- a/imp/lib/Message.php +++ b/imp/lib/Message.php @@ -61,15 +61,15 @@ class IMP_Message /* If the target is a tasklist, handle the move/copy specially. */ if ($conf['tasklist']['use_tasklist'] && - (strpos($targetMbox, '_tasklist_') === 0)) { - $this->_createTasksOrNotes(str_replace('_tasklist_', '', $targetMbox), $action, $indices, 'task'); + (strpos($targetMbox, '\0tasklist_') === 0)) { + $this->_createTasksOrNotes(str_replace('\0tasklist_', '', $targetMbox), $action, $indices, 'task'); return true; } /* If the target is a notepad, handle the move/copy specially. */ if ($conf['notepad']['use_notepad'] && - (strpos($targetMbox, '_notepad_') === 0)) { - $this->_createTasksOrNotes(str_replace('_notepad_', '', $targetMbox), $action, $indices, 'note'); + (strpos($targetMbox, '\0notepad_') === 0)) { + $this->_createTasksOrNotes(str_replace('\0notepad_', '', $targetMbox), $action, $indices, 'note'); return true; }