use normpath so abs path doesn't show up in log

This commit is contained in:
Michel Oosterhof
2015-06-30 16:00:44 +04:00
parent 64d4c69310
commit 6b0965a422

View File

@@ -92,7 +92,7 @@ class HoneyPotBaseProtocol(insults.TerminalProtocol):
if self.fs.exists(i):
path = i
break
txt = os.path.abspath('%s/%s' % \
txt = os.path.normpath('%s/%s' % \
(self.env.cfg.get('honeypot', 'txtcmds_path'), path))
if os.path.exists(txt) and os.path.isfile(txt):
return self.txtcmd(txt)