mirror of
https://github.com/9001/copyparty.git
synced 2025-08-16 16:42:13 -06:00
Merge f20113ea2c
into 187cae25bf
This commit is contained in:
commit
0f26675484
|
@ -1130,7 +1130,18 @@ class HttpCli(object):
|
|||
status: int = 200,
|
||||
use302: bool = False,
|
||||
) -> bool:
|
||||
vp = self.args.SRS + vpath
|
||||
if self.args.R:
|
||||
if vpath.startswith(self.args.SR):
|
||||
vp = vpath
|
||||
elif vpath.startswith("/"):
|
||||
vp = self.args.SR + vpath
|
||||
else:
|
||||
vp = self.args.SRS + vpath
|
||||
else:
|
||||
if vpath.startswith("/"):
|
||||
vp = vpath
|
||||
else:
|
||||
vp = "/" + vpath if vpath else "/"
|
||||
html = self.j2s(
|
||||
"msg",
|
||||
h2='<a href="{}">{} {}</a>'.format(
|
||||
|
|
Loading…
Reference in a new issue