[gollem] directory path patch

Gaudenz Steinlin gaudenz at soziologie.ch
Mon Feb 3 22:27:29 PST 2003


hi

If you go to the directory "/" in gollem and then click on any directory
below it, gollem will show you "//directory". Here is a little patch to
eliminate the additional slash.

- gaudenz

Index: Gollem.php
===================================================================
RCS file: /repository/gollem/lib/Gollem.php,v
retrieving revision 1.74
diff -u -r1.74 Gollem.php
--- Gollem.php  23 Jan 2003 04:04:45 -0000      1.74
+++ Gollem.php  3 Feb 2003 21:25:18 -0000
@@ -290,7 +290,7 @@
         if (empty($base) || !isset($base)) {
             return $dir;
         } else {
-            return $base . '/' . $dir;
+            return ereg_replace('/+', '/', $base . '/' . $dir);
         }
     }
  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.horde.org/archives/gollem/attachments/20030203/dbbd5a69/attachment.bin


More information about the gollem mailing list