Ticket #10945: allow-TYPE-prior-to-logon.patch

File allow-TYPE-prior-to-logon.patch, 531 bytes (added by Kurt McKee, 3 years ago)

Allow TYPE I prior to logon (affects ControlSocket.cpp in FileZilla server 0.9.58 source)

  • ControlSocket.cpp

    old new  
    411411    {_T("PWD"),  {commands::PWD,  false, false}},
    412412    {_T("PORT"), {commands::PORT, true,  false}},
    413413    {_T("PASV"), {commands::PASV, false, false}},
    414     {_T("TYPE"), {commands::TYPE, true,  false}},
     414    {_T("TYPE"), {commands::TYPE, true,  true}},
    415415    {_T("LIST"), {commands::LIST, false, false}},
    416416    {_T("REST"), {commands::REST, true,  false}},
    417417    {_T("CDUP"), {commands::CDUP, false, false}},