Commit 49e3d803 authored by Steve Holme's avatar Steve Holme
Browse files

ftpserver.pl: Corrected accidental move of logmsg() call

Corrected the call to logmsg() in the IMAP SEARCH handler from commit
4ae7b7ea as it should have been outputting the what argument and
not the test number.
parent b644ae68
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1036,14 +1036,14 @@ sub SEARCH_imap {
    my ($what) = @_;
    fix_imap_params($what);

    logmsg "SEARCH_imap got $what\n";

    if ($selected eq "") {
        sendcontrol "$cmdid BAD Command received in Invalid state\r\n";
    }
    else {
        my $testno = $selected;

        logmsg "SEARCH_imap got test $testno\n";

        $testno =~ s/^([^0-9]*)//;
        my $testpart = "";
        if ($testno > 10000) {