diff --git a/lib/takeover/web.py b/lib/takeover/web.py index 778cc4375..d50749fb9 100644 --- a/lib/takeover/web.py +++ b/lib/takeover/web.py @@ -173,6 +173,9 @@ class Web: self.__webFileInject(stagerContent, stagerName, directory) requestDir = ntToPosixSlashes(directory) + if not requestDir: + continue + if requestDir[-1] != '/': requestDir += '/'