From 8864d28292e20ab6c045f9fff1cd196e0c9eb52c Mon Sep 17 00:00:00 2001 From: Michal Novotny Date: Fri, 11 Jun 2010 20:52:24 +0200 Subject: [PATCH] Bug 523127 - Firefox can't list directories on Sysax FTP server. r=dougt, sr=biesi --- netwerk/protocol/ftp/nsFtpConnectionThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/protocol/ftp/nsFtpConnectionThread.cpp b/netwerk/protocol/ftp/nsFtpConnectionThread.cpp index 60225a3ab13..cd74aa09a63 100644 --- a/netwerk/protocol/ftp/nsFtpConnectionThread.cpp +++ b/netwerk/protocol/ftp/nsFtpConnectionThread.cpp @@ -1538,7 +1538,7 @@ nsFtpState::R_pasv() { mDataStream = do_QueryInterface(input); } - if (mRETRFailed || (!mPath.IsEmpty() && mPath.Last() == '/')) + if (mRETRFailed || mPath.IsEmpty() || mPath.Last() == '/') return FTP_S_CWD; return FTP_S_SIZE; }