[chora] bug && bugfix again...

Mathieu Arnold arn_mat@club-internet.fr
Tue, 10 Apr 2001 19:41:26 +0200



Chuck Hagenbuch wrote:
> 
> Quoting Mathieu Arnold <arn_mat@club-internet.fr>:
> 
> > and to prevent problems with other char as well, here's a pretty patch.
> > if you need some explanations on a point, feel free to ask ;)
> 
> Will be committed in a minute, along with the correction you sent later. Thanks!

found out that i forgot spaces into directories :
Index: cvs.php
===================================================================
RCS file: /home/cvs/cvs/dup/horde/chora/cvs.php,v
retrieving revision 1.84
diff -u -r1.84 cvs.php
--- cvs.php     2001/04/10 15:15:03     1.84
+++ cvs.php     2001/04/10 17:38:15
@@ -62,9 +62,10 @@

     /* Display all the directories first */
     $dirrow = 0;
-    while (list(,$currDir) = each($dirList)) {
+    while (list(,$currentDir) = each($dirList)) {
         $dirrow = (++$dirrow % 2);
-        $url = url('cvs',"$where/$currDir");
+        $url = url('cvs',"$where/$currentDir");
+        $currDir = htmlallspaces($currentDir);
         include($conf['paths']['templates'].'/dir_directory.inc');
     }
 
there also is a "typo" problem when a directory/file has 2 or more
consecutive spaces in the page_header.inc, the name is not displayed
correctly as the spaces remains spaces, and are not converted to &nbsp;,
but, it's not really that bad ;)

-- 
Mathieu Arnold