mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
support ';' in passwords
This commit is contained in:
parent
8b0e66122f
commit
4ee81af8f6
|
@ -331,7 +331,7 @@ class HttpCli(object):
|
|||
for k in arglist.split("&"):
|
||||
if "=" in k:
|
||||
k, zs = k.split("=", 1)
|
||||
uparam[k.lower()] = zs.strip()
|
||||
uparam[k.lower()] = unquotep(zs.strip().replace("+", " "))
|
||||
else:
|
||||
uparam[k.lower()] = ""
|
||||
|
||||
|
|
|
@ -1593,7 +1593,7 @@ def gen_filekey_dbg(
|
|||
|
||||
|
||||
def gencookie(k: str, v: str, r: str, tls: bool, dur: Optional[int]) -> str:
|
||||
v = v.replace(";", "")
|
||||
v = v.replace("%", "%25").replace(";", "%3B")
|
||||
if dur:
|
||||
exp = formatdate(time.time() + dur, usegmt=True)
|
||||
else:
|
||||
|
@ -2320,7 +2320,7 @@ def unescape_cookie(orig: str) -> str:
|
|||
ret += chr(int(esc[1:], 16))
|
||||
except:
|
||||
ret += esc
|
||||
esc = ""
|
||||
esc = ""
|
||||
|
||||
else:
|
||||
ret += ch
|
||||
|
|
|
@ -742,7 +742,7 @@ function get_pwd() {
|
|||
if (pwd.length < 2)
|
||||
return null;
|
||||
|
||||
return pwd[1].split(';')[0];
|
||||
return decodeURIComponent(pwd[1].split(';')[0]);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1769,7 +1769,6 @@ function cprop(name) {
|
|||
|
||||
|
||||
function bchrome() {
|
||||
console.log(document.documentElement.className);
|
||||
var v, o = QS('meta[name=theme-color]');
|
||||
if (!o)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue