Fix USER/PASS case in rslight-lib.php

This commit is contained in:
Retro_Guy 2023-04-27 21:22:26 -07:00
parent 714e78bfb4
commit 8ccc56c73e
1 changed files with 2 additions and 2 deletions

View File

@ -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 {