ihead filter on ohead too

This commit is contained in:
ed 2026-05-25 16:12:26 +00:00
parent 6183540c61
commit c28aa08b35

View file

@ -3082,10 +3082,10 @@ class AuthSrv(object):
pwds.extend([x.split(":", 1)[1] for x in pwds if ":" in x]) pwds.extend([x.split(":", 1)[1] for x in pwds if ":" in x])
if pwds: if pwds:
if self.ah.on: if self.ah.on:
zs = r"(\[H\] %s:.*|[?&]%s=)([^&]+)" zs = r"(\[[HO]\] %s:.*|[?&]%s=)([^&]+)"
zs = zs % (self.args.pw_hdr, self.args.pw_urlp) zs = zs % (self.args.pw_hdr, self.args.pw_urlp)
else: else:
zs = r"(\[H\] %s:.*|=)(" % (self.args.pw_hdr,) zs = r"(\[[HO]\] %s:.*|=)(" % (self.args.pw_hdr,)
zs += "|".join(pwds) + r")([]&; ]|$)" zs += "|".join(pwds) + r")([]&; ]|$)"
self.re_pwd = re.compile(zs) self.re_pwd = re.compile(zs)