Change build() to change an empty node name with /
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 22:35:56 +0000 (22:35 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 22:35:56 +0000 (22:35 +0000)
includes/cachev.php

index ebb716e1cf29bbe17c52bc7938b8f5f5777a7c87..7215739e14e66cba9138029b2538bdc28bf3bb9f 100644 (file)
@@ -351,6 +351,7 @@ class cacheV
                        }
                        
                        $path = str_replace($this->controller->repospath, '', $node['url']['value']);
+                       $path = ($path == '' ? '/' : $path);
                        
                        $inserts['nodes'][] = "('$path', '" . $node['kind'] . "', " . $node['commit']['revision'] . ", '" . $this->controller->registry->escape(serialize($loglist)) . "', '" . $this->controller->registry->escape(serialize($proplist["$path"])) . "')";
                }