mirror of
https://github.com/9001/copyparty.git
synced 2026-11-20 16:36:34 +00:00
also hide windows-paths in exceptions
This commit is contained in:
1 parent
189391fccd
commit
b11db090d8
1 file changed
+4
@@ -410,6 +410,10 @@ def log_thrs(log, ival, name):
|
||||
def vol_san(vols, txt):
|
||||
for vol in vols:
|
||||
txt = txt.replace(vol.realpath.encode("utf-8"), vol.vpath.encode("utf-8"))
|
||||
txt = txt.replace(
|
||||
vol.realpath.encode("utf-8").replace(b"\\", b"\\\\"),
|
||||
vol.vpath.encode("utf-8"),
|
||||
)
|
||||
|
||||
return txt
|
||||
|
||||
|
||||
Reference in new issue
Block a user