Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 73759 | Differences between
and this patch

Collapse All | Expand All

(-)kioslave/ftp/ftp.cc (+8 lines)
Lines 751-756 bool Ftp::ftpSendCmd( const QCString& cm Link Here
751
{
751
{
752
  assert(m_control != NULL);    // must have control connection socket
752
  assert(m_control != NULL);    // must have control connection socket
753
753
754
  if ( cmd.find( '\r' ) != -1 || cmd.find( '\n' ) != -1)
755
  {
756
    kdWarning(7102) << "Invalid command received (contains CR or LF): "
757
                    << cmd.data() << endl;
758
    error( ERR_UNSUPPORTED_ACTION, m_host );
759
    return false;
760
  }
761
754
  // Don't print out the password...
762
  // Don't print out the password...
755
  bool isPassCmd = (cmd.left(4).lower() == "pass");
763
  bool isPassCmd = (cmd.left(4).lower() == "pass");
756
  if ( !isPassCmd )
764
  if ( !isPassCmd )

Return to bug 73759