Horde_Text:: -> Horde_Text_Filter::filter()
authorChuck Hagenbuch <chuck@horde.org>
Thu, 11 Jun 2009 21:46:40 +0000 (17:46 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Thu, 11 Jun 2009 21:46:40 +0000 (17:46 -0400)
chora/annotate.php
chora/browsedir.php

index ab5a689..4cacd15 100644 (file)
@@ -41,7 +41,7 @@ try {
     Chora::fatal($e);
 }
 
-$title = sprintf(_("Source Annotation of %s (revision %s)"), Horde_Text::htmlAllSpaces($where), $rev);
+$title = sprintf(_("Source Annotation of %s (revision %s)"), Horde_Text_Filter::filter($where, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true, 'encode_all' => true)), $rev);
 $extraLink = sprintf('<a href="%s">%s</a> | <a href="%s">%s</a>',
                      Chora::url('co', $where, array('r' => $rev)), _("View"),
                      Chora::url('co', $where, array('r' => $rev, 'p' => 1)), _("Download"));
@@ -72,7 +72,7 @@ while (list(,$line) = each($lines)) {
     }
     $prev = $fl->queryPreviousRevision($rev);
 
-    $line = Horde_Text::htmlAllSpaces($line['line']);
+    $line = Horde_Text_Filter::filter($line['line'], 'space2html', array('charset' => NLS::getCharset(), 'encode' => true, 'encode_all' => true));
     include CHORA_TEMPLATES . '/annotate/line.inc';
 }
 
index 8fc860b..9bb132a 100644 (file)
@@ -111,7 +111,7 @@ if ($fileList) {
         $log = $lg->queryLog();
         $attic = $currFile->isDeleted();
         $fileName = $where . ($attic ? '/' . 'Attic' : '') . '/' . $realname;
-        $name = Horde_Text::htmlAllSpaces($realname);
+        $name = Horde_Text_Filter::filter($realname, 'space2html', array('charset' => NLS::getCharset(), 'encode' => true, 'encode_all' => true));
         $url = Chora::url('browsefile', $fileName);
         $readableDate = Chora::readableTime($date);
         if ($log) {