fixed drop-down label
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Wed, 13 Jul 2005 09:57:41 +0000 (09:57 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Wed, 13 Jul 2005 09:57:41 +0000 (09:57 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@25 8392b6e1-25fa-0310-8288-cc32f8e212ea

bin/BackupPC_updatedb

index 560b056..eea5ffe 100755 (executable)
@@ -236,7 +236,10 @@ sub getShareID() {
                VALUES (?,?,?,?)
        });
 
-       $sth->{insert_share}->execute($hostID,$share, $hostname . $share,undef);
+       my $drop_down = $hostname . '/' . $share;
+       $drop_down =~ s#//+#/#g;
+
+       $sth->{insert_share}->execute($hostID,$share, $drop_down ,undef);
        return $dbh->func('last_insert_rowid');         
 }