From 26e2cd8831cd61581f2ba9a207d1f6b635392985 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Tue, 30 Oct 2018 14:21:15 +0100 Subject: [PATCH] fix: updated islazy to 1.9.1 (fixes #360) --- Gopkg.lock | 6 +++--- Gopkg.toml | 2 +- session/module.go | 1 - vendor/github.com/evilsocket/islazy/fs/misc.go | 3 +++ 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index d2014a90..f4b0bf56 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -59,7 +59,7 @@ revision = "f58a169a71a51037728990b2d3597a14f56b525b" [[projects]] - digest = "1:b44604e0c8da17e780203bfd9388d65db31d4ee039347ea92788412e7737a08c" + digest = "1:495dc25bbfe6025e945e3efe885801fc1aefc33d835cac453c0e36a35693d839" name = "github.com/evilsocket/islazy" packages = [ "data", @@ -71,8 +71,8 @@ "zip", ] pruneopts = "UT" - revision = "be7e564817af1379a350998577006745039f599f" - version = "v1.9.0" + revision = "3d8400c74f9dbc626d913e0575cda05d914bea57" + version = "v1.9.1" [[projects]] branch = "master" diff --git a/Gopkg.toml b/Gopkg.toml index cab5afa3..30e67b25 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -25,7 +25,7 @@ # unused-packages = true [[constraint]] name = "github.com/evilsocket/islazy" - version = "1.9.0" + version = "1.9.1" [[constraint]] branch = "master" diff --git a/session/module.go b/session/module.go index 0ea63f58..89dd05d9 100644 --- a/session/module.go +++ b/session/module.go @@ -109,7 +109,6 @@ func (m SessionModule) IntParam(name string) (error, int) { } } - func (m SessionModule) DecParam(name string) (error, float64) { if p, found := m.params[name]; found { if err, v := p.Get(m.Session); err != nil { diff --git a/vendor/github.com/evilsocket/islazy/fs/misc.go b/vendor/github.com/evilsocket/islazy/fs/misc.go index 6fafd674..04cb8116 100644 --- a/vendor/github.com/evilsocket/islazy/fs/misc.go +++ b/vendor/github.com/evilsocket/islazy/fs/misc.go @@ -14,6 +14,9 @@ var ( // Expand will expand a path with ~ to a full path of the current user. func Expand(path string) (string, error) { + if path == "" { + return path, nil + } usr, err := user.Current() if err != nil { return "", err