Skip to content

Commit

Permalink
Merge pull request #16 from jyksnw/master
Browse files Browse the repository at this point in the history
Fix #15 - Fix for not escaping leading database '/'
  • Loading branch information
martinrusev committed Mar 2, 2017
2 parents f8b26e4 + 699c81b commit 0539c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/mongodb/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func GetSession(server *Server) error {

dialInfo := &mgo.DialInfo{
Addrs: []string{server.URL.Host},
Database: server.URL.Path,
Database: strings.Replace(server.URL.Path, "/", "", -1),
}
dialInfo.Timeout = 5 * time.Second
if server.URL.User != nil {
Expand Down

0 comments on commit 0539c22

Please sign in to comment.