From a5b15cfa71283dd60897098b4b518b5796f69dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Sun, 2 Feb 2025 01:52:43 -0500 Subject: [PATCH] Lower-case password in JS as well --- src/sbbs3/js_mqtt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sbbs3/js_mqtt.c b/src/sbbs3/js_mqtt.c index fd0cea7895..95a936283a 100644 --- a/src/sbbs3/js_mqtt.c +++ b/src/sbbs3/js_mqtt.c @@ -168,6 +168,7 @@ static JSBool js_connect(JSContext* cx, uintN argc, jsval *arglist) && user_is_sysop(&user)) { char hexpass[LEN_PASS * 2 + 1]; + strlwr(user.pass); for (size_t i = 0; user.pass[i]; i++) { const char hd[] = "0123456789ABCDEF"; hexpass[i*2] = hd[(((uint8_t *)user.pass)[i] & 0xf0) >> 4]; -- GitLab