c3e047e90b
(samba/cups subpackages to fix library issues)
19 lines
629 B
Plaintext
19 lines
629 B
Plaintext
$OpenBSD: patch-kioslave_ftp_ftp_cc,v 1.3 2005/11/29 14:00:12 espie Exp $
|
|
--- kioslave/ftp/ftp.cc.orig Mon Oct 10 17:05:36 2005
|
|
+++ kioslave/ftp/ftp.cc Mon Nov 21 12:00:08 2005
|
|
@@ -756,6 +756,14 @@ bool Ftp::ftpSendCmd( const QCString& cm
|
|
return false;
|
|
}
|
|
|
|
+ if ( cmd.find( '\r' ) != -1 || cmd.find( '\n' ) != -1)
|
|
+ {
|
|
+ kdWarning(7102) << "Invalid command received (contains CR or LF): "
|
|
+ << cmd.data() << endl;
|
|
+ error( ERR_UNSUPPORTED_ACTION, m_host );
|
|
+ return false;
|
|
+ }
|
|
+
|
|
// Don't print out the password...
|
|
bool isPassCmd = (cmd.left(4).lower() == "pass");
|
|
if ( !isPassCmd )
|