ab-replay: 메모리 파일 비밀번호의 마크다운 백틱 제거
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5835709022
commit
2385331622
1 file changed
+1
-1
@@ -43,7 +43,7 @@ def login():
|
||||
pw = os.environ.get("HC_PASSWORD")
|
||||
if not pw:
|
||||
txt = open(CRED_FILE, encoding="utf-8").read()
|
||||
pw = re.search(r"password\s*=\s*(\S+)", txt).group(1)
|
||||
pw = re.search(r"password\s*=\s*(\S+)", txt).group(1).strip("`'\"*,;") # 마크다운 백틱 제거
|
||||
req = urllib.request.Request(BASE + "/api/auth/login", json.dumps({"username": USER, "password": pw}).encode(),
|
||||
{"Content-Type": "application/json"})
|
||||
data = json.loads(urllib.request.urlopen(req, timeout=20).read())
|
||||
|
||||
Reference in new issue
Block a user