mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
fix symlinked filekeys
This commit is contained in:
parent
17c465bed7
commit
0dbeb010cf
|
@ -69,6 +69,7 @@ from .util import (
|
||||||
unescape_cookie,
|
unescape_cookie,
|
||||||
unquote,
|
unquote,
|
||||||
unquotep,
|
unquotep,
|
||||||
|
vjoin,
|
||||||
vol_san,
|
vol_san,
|
||||||
vsplit,
|
vsplit,
|
||||||
yieldfile,
|
yieldfile,
|
||||||
|
@ -2330,8 +2331,9 @@ class HttpCli(object):
|
||||||
|
|
||||||
if not is_dir and (self.can_read or self.can_get):
|
if not is_dir and (self.can_read or self.can_get):
|
||||||
if not self.can_read and "fk" in vn.flags:
|
if not self.can_read and "fk" in vn.flags:
|
||||||
|
vabs = vjoin(vn.realpath, rem)
|
||||||
correct = self.gen_fk(
|
correct = self.gen_fk(
|
||||||
self.args.fk_salt, abspath, st.st_size, 0 if ANYWIN else st.st_ino
|
self.args.fk_salt, vabs, st.st_size, 0 if ANYWIN else st.st_ino
|
||||||
)[: vn.flags["fk"]]
|
)[: vn.flags["fk"]]
|
||||||
got = self.uparam.get("k")
|
got = self.uparam.get("k")
|
||||||
if got != correct:
|
if got != correct:
|
||||||
|
|
Loading…
Reference in a new issue