From 8ccc56c73e791d1c920e477312795357c9fe9e5c Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 27 Apr 2023 21:22:26 -0700 Subject: [PATCH] Fix USER/PASS case in rslight-lib.php --- Rocksolid_Light/rslight/scripts/rslight-lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rocksolid_Light/rslight/scripts/rslight-lib.php b/Rocksolid_Light/rslight/scripts/rslight-lib.php index b3b0ad9..8a8b939 100755 --- a/Rocksolid_Light/rslight/scripts/rslight-lib.php +++ b/Rocksolid_Light/rslight/scripts/rslight-lib.php @@ -120,7 +120,7 @@ set_time_limit(0); if(!isset($command[2])) { $command[2] = fgets($msgsock, 2048); } - if($command[1] == 'user') { + if(strtolower($command[1]) == 'user') { $user = $command[2]; if(isset($command[3])) { $user = $user." ".$command[3]; @@ -129,7 +129,7 @@ set_time_limit(0); fwrite($msgsock, $msg, strlen($msg)); continue; } - if ($command[1] == 'pass') { + if (strtolower($command[1]) == 'pass') { if($user == "") { $msg="482 Authentication commands issued out of sequence\r\n"; } else {