Merge f20113ea2c
into f4a3fba29c
This commit is contained in:
commit
9ce87454ff
@ -1110,7 +1110,18 @@ class HttpCli(object):
|
||||
status: int = 200,
|
||||
use302: bool = False,
|
||||
) -> bool:
|
||||
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 New Issue
Block a user