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);
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);
/* 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;
}