continue;
}
$url = Chora::url('browsedir', $where . '/' . $currentDir . '/');
- $currDir = Horde_Text::htmlAllSpaces($currentDir);
+ $currDir = Horde_Text_Filter::filter($currentDir, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true, 'encode_all' => true));
require CHORA_TEMPLATES . '/directory/dir.inc';
}
echo '</tbody>';
passthru($conf['paths']['cvsgraph'] . ' ' . $argstr . ' ' . $file);
} else {
// Display the wrapper page for the image.
- $title = sprintf(_("Graph for %s"), Horde_Text::htmlAllSpaces($where));
+ $title = sprintf(_("Graph for %s"), Horde_Text_Filter::filter($where, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true, 'encode_all' => true)));
$extraLink = Chora::getFileViews($where, 'cvsgraph');
require CHORA_TEMPLATES . '/common-header.inc';
$abbrev_r1 = $VC->abbrev($r1);
$abbrev_r2 = $VC->abbrev($r2);
$title = sprintf(_("Diff for %s between version %s and %s"),
- Horde_Text::htmlallspaces($where), $abbrev_r1, $abbrev_r2);
+ Horde_Text_Filter::filter($where, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true, 'encode_all' => true)), $abbrev_r1, $abbrev_r2);
/* Format log entries. */
$log_messages = array();
$maxCol = max($val, $maxCol);
}
-$title = sprintf(_("Source Branching View for %s"), Horde_Text::htmlallspaces($where));
+$title = sprintf(_("Source Branching View for %s"), Horde_Text_Filter::filter($where, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true, 'encode_all' => true)));
$extraLink = Chora::getFileViews($where, 'history');
require CHORA_TEMPLATES . '/common-header.inc';
}
$path .= $dir;
if (!empty($dir)) {
- $bar .= '/ <a href="' . self::url('browsedir', $path . ($i == $dir_count && !$GLOBALS['atdir'] ? '' : '/')) . '">'. Horde_Text::htmlallspaces($dir) . '</a> ';
+ $bar .= '/ <a href="' . self::url('browsedir', $path . ($i == $dir_count && !$GLOBALS['atdir'] ? '' : '/')) . '">'. Horde_Text_Filter::filter($dir, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true, 'encode_all' => true)) . '</a> ';
}
}
*/
static public function formatLogMessage($log)
{
- $log = Text_Filter::filter($log, 'text2html', array('parselevel' => Horde_Text_Filter_Text2html::MICRO, 'charset' => NLS::getCharset(), 'class' => ''));
+ $log = Horde_Text_Filter::filter($log, 'text2html', array('parselevel' => Horde_Text_Filter_Text2html::MICRO, 'charset' => NLS::getCharset(), 'class' => ''));
return (empty($GLOBALS['conf']['tickets']['regexp']) || empty($GLOBALS['conf']['tickets']['replacement']))
? $log
}
arsort($stats);
-$title = sprintf(_("Statistics for %s"), Horde_Text::htmlallspaces($where));
+$title = sprintf(_("Statistics for %s"), Horde_Text_Filter::filter($where, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true, 'encode_all' => true)));
Horde::addScriptFile('prototype.js', 'horde', true);
Horde::addScriptFile('tables.js', 'horde', true);
require CHORA_TEMPLATES . '/common-header.inc';
$val = isset($filter[$mbox['val']]) ? '' : htmlspecialchars($mbox['val']);
$sel = ($mbox['val'] && !empty($options['selected']) && ($mbox['val'] === $options['selected'])) ? ' selected="selected"' : '';
$label = empty($options['abbrev']) ? $mbox['label'] : $mbox['abbrev'];
- $text .= sprintf('<option value="%s"%s>%s</option>%s', $val, $sel, Horde_Text::htmlSpaces($label), "\n");
+ $text .= sprintf('<option value="%s"%s>%s</option>%s', $val, $sel, Horde_Text_Filter::filter($label, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true)), "\n");
}
/* Add the list of virtual folders to the list. */
$vfolder_sel = $GLOBALS['imp_search']->searchMboxID();
$text .= '<option value="" disabled="disabled">- - - - - - - - -</option>' . "\n";
foreach ($vfolders as $id => $val) {
- $text .= sprintf('<option value="%s"%s>%s</option>%s', $GLOBALS['imp_search']->createSearchID($id), ($vfolder_sel == $id) ? ' selected="selected"' : '', Horde_Text::htmlSpaces($val), "\n");
+ $text .= sprintf('<option value="%s"%s>%s</option>%s', $GLOBALS['imp_search']->createSearchID($id), ($vfolder_sel == $id) ? ' selected="selected"' : '', Horde_Text_Filter::filter($val, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true)), "\n");
}
}
}
foreach ($tasklists as $id => $tasklist) {
$text .= sprintf('<option value="%s">%s</option>%s',
'_tasklist_' . $id,
- Horde_Text::htmlSpaces($tasklist->get('name')),
+ Horde_Text_Filter::filter($tasklist->get('name'), 'space2html', array('charset' => NLS::getCharset(), 'encode' => true)),
"\n");
}
}
foreach ($notepads as $id => $notepad) {
$text .= sprintf('<option value="%s">%s</option>%s',
'_notepad_' . $id,
- Horde_Text::htmlSpaces($notepad->get('name')),
+ Horde_Text_Filter::filter($notepad->get('name'), 'space2html', array('charset' => NLS::getCharset(), 'encode' => true)),
"\n");
}
}
* Formats the subject header.
*
* @param string $subject The MIME encoded subject header.
- * @param string $htmlspaces Run through Horde_Text::htmlSpaces()?
+ * @param string $htmlspaces HTML-ize spaces?
*
* @return string The formatted subject header.
*/
$new_subject = $subject = IMP::filterText(preg_replace("/\s+/", ' ', $subject));
if ($htmlspaces) {
- $new_subject = Horde_Text::htmlSpaces($subject);
+ $new_subject = Horde_Text_Filter::filter($subject, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true));
if (empty($new_subject)) {
$new_subject = htmlspecialchars($subject);
}
$label = $mbox['abbrev'];
$text .= sprintf('<option%s value="%s"%s>%s</option>%s',
$disabled, $val, $sel,
- Horde_Text::htmlSpaces($label), "\n");
+ Horde_Text_Filter::filter($label, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true)), "\n");
}
$text .= '</select>';