mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
also hide windows-paths in exceptions
This commit is contained in:
parent
189391fccd
commit
b11db090d8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue