Loweynet
リビジョン | 7a6845f150b5db9bc5e8f1b5ad6ac5e683d8ac3f (tree) |
---|---|
日時 | 2013-05-08 23:20:58 |
作者 | s_kawamoto <s_kawamoto@user...> |
コミッター | s_kawamoto |
Fix bugs that MLSD responses that are not in lowercase are unrecognized.
@@ -3607,11 +3607,15 @@ static int AnalizeFileInfo(char *Str) | ||
3607 | 3607 | else |
3608 | 3608 | { |
3609 | 3609 | // MLSD対応 |
3610 | - if(FindField(Str, Tmp, 0, NO) == FFFTP_SUCCESS && strstr(Tmp, "type=") != NULL) | |
3610 | + if(FindField(Str, Tmp, 0, NO) == FFFTP_SUCCESS) | |
3611 | 3611 | { |
3612 | - if(FindField2(Str, Tmp, ';', 1, NO) == FFFTP_SUCCESS && FindField2(Str, Tmp, '=', 1, NO) == FFFTP_SUCCESS) | |
3612 | + _strlwr(Tmp); | |
3613 | + if(strstr(Tmp, "type=") != NULL) | |
3613 | 3614 | { |
3614 | - Ret = LIST_MLSD; | |
3615 | + if(FindField2(Str, Tmp, ';', 1, NO) == FFFTP_SUCCESS && FindField2(Str, Tmp, '=', 1, NO) == FFFTP_SUCCESS) | |
3616 | + { | |
3617 | + Ret = LIST_MLSD; | |
3618 | + } | |
3615 | 3619 | } |
3616 | 3620 | } |
3617 | 3621 |