Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-43285 Make ftplib not trust the PASV response. (GH-24838) | Gregory P. Smith | 2021-03-15 | 1 | -2/+9 |
| | | | | | | | | | | | | | | | bpo-43285: Make ftplib not trust the PASV response. The IPv4 address value returned from the server in response to the PASV command should not be trusted. This prevents a malicious FTP server from using the response to probe IPv4 address and port combinations on the client network. Instead of using the returned address, we use the IP address we're already connected to. This is the strategy other ftp clients adopted, and matches the only strategy available for the modern IPv6 EPSV command where the server response must return a port number and nothing else. For the rare user who _wants_ this ugly behavior, set a `trust_server_pasv_ipv4_address` attribute on your `ftplib.FTP` instance to True. | ||||
* | bpo-39380: Change ftplib encoding from latin-1 to utf-8 (GH-18048) | Sebastian Pedersen | 2020-04-13 | 1 | -9/+13 |
| | | | | | Add the encoding in ftplib.FTP and ftplib.FTP_TLS to the constructor as keyword-only and change the default from "latin-1" to "utf-8" to follow RFC 2640. | ||||
* | bpo-39259: ftplib.FTP/FTP_TLS now reject timeout = 0 (GH-17959) | Dong-hee Na | 2020-01-13 | 1 | -5/+6 |
| | |||||
* | Enforce PEP 257 conventions in ftplib.py (GH-15604) | Alan Yee | 2019-09-03 | 1 | -8/+5 |
| | | | | | -`"""` over `'''` -no blank line either before or after the docstring. -place the closing quotes on a line by themselves | ||||
* | bpo-37390: Add audit event table to documentations (GH-14406) | Steve Dower | 2019-06-27 | 1 | -2/+2 |
| | | | Also updates some (unreleased) event names to be consistent with the others. | ||||
* | bpo-37363: Add audit events for a range of modules (GH-14301) | Steve Dower | 2019-06-24 | 1 | -0/+2 |
| | |||||
* | bpo-35934: Add socket.create_server() utility function (GH-11784) | Giampaolo Rodola | 2019-04-08 | 1 | -20/+1 |
| | |||||
* | bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268) | Pablo Aguiar | 2018-11-01 | 1 | -1/+1 |
| | |||||
* | bpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058) | Christian Heimes | 2017-09-15 | 1 | -2/+2 |
| | | | | | | Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. Signed-off-by: Christian Heimes <christian@python.org> | ||||
* | bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal command ↵ | Dong-hee Na | 2017-07-22 | 1 | -0/+2 |
| | | | | (#1214) | ||||
* | Issue #28022: Deprecate ssl-related arguments in favor of SSLContext. | Christian Heimes | 2016-09-10 | 1 | -0/+4 |
| | | | | | | | The deprecation include manual creation of SSLSocket and certfile/keyfile (or similar) in ftplib, httplib, imaplib, smtplib, poplib and urllib. ssl.wrap_socket() is not marked as deprecated yet. | ||||
* | #27364: fix "incorrect" uses of escape character in the stdlib. | R David Murray | 2016-09-08 | 1 | -1/+1 |
| | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter. | ||||
* | Removed unused imports. | Serhiy Storchaka | 2016-04-24 | 1 | -2/+0 |
| | |||||
* | Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej | Martin Panter | 2015-11-14 | 1 | -1/+2 |
| | |||||
* | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 | Martin Panter | 2015-11-02 | 1 | -2/+2 |
|\ | |||||
| * | Issue #25523: Correct "a" article to "an" article | Martin Panter | 2015-11-02 | 1 | -2/+2 |
| | | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar. | ||||
* | | Issue #23865: close() methods in multiple modules now are idempotent and more | Serhiy Storchaka | 2015-04-10 | 1 | -5/+10 |
|\ \ | |/ | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured. | ||||
| * | Issue #23865: close() methods in multiple modules now are idempotent and more | Serhiy Storchaka | 2015-04-10 | 1 | -5/+10 |
| | | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured. | ||||
* | | merge 3.4 (#23111) | Benjamin Peterson | 2014-12-30 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | make PROTOCOL_SSLv23 the default protocol version for ftplib (closes #23111) | Benjamin Peterson | 2014-12-30 | 1 | -2/+2 |
| | | |||||
* | | merge 3.4 (#22921) | Benjamin Peterson | 2014-11-23 | 1 | -4/+2 |
|\ \ | |/ | |||||
| * | don't require OpenSSL SNI to pass hostname to ssl functions (#22921) | Benjamin Peterson | 2014-11-23 | 1 | -4/+2 |
| | | | | | | | | Patch by Donald Stufft. | ||||
* | | Issue #6623: Remove deprecated Netrc class in the ftplib module. | Berker Peksag | 2014-11-01 | 1 | -112/+5 |
|/ | | | | Patch by Matt Chaput. | ||||
* | Issue #20978: pyflakes: fix undefined names | Victor Stinner | 2014-03-20 | 1 | -1/+0 |
| | |||||
* | Issue #19781: ftplib now supports SSLContext.check_hostname and server name | Christian Heimes | 2013-12-02 | 1 | -2/+6 |
| | | | | indication for TLS/SSL connections. | ||||
* | Issue #19735: Implement private function ssl._create_stdlib_context() to | Christian Heimes | 2013-11-23 | 1 | -11/+6 |
| | | | | | create SSLContext objects in Python's stdlib module. It provides a single configuration point and makes use of SSLContext.load_default_certs(). | ||||
* | Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read by | Serhiy Storchaka | 2013-10-20 | 1 | -3/+12 |
|\ | | | | | | | | | limiting the call to readline(). Original patch by Michał Jastrzębski and Giampaolo Rodola. | ||||
| * | Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read by | Serhiy Storchaka | 2013-10-20 | 1 | -5/+18 |
| | | | | | | | | | | limiting the call to readline(). Original patch by Michał Jastrzębski and Giampaolo Rodola. | ||||
* | | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) | Brett Cannon | 2013-07-04 | 1 | -1/+1 |
| | | |||||
* | | Issue #18200: Update the stdlib (except tests) to use | Brett Cannon | 2013-06-14 | 1 | -1/+1 |
| | | | | | | | | ModuleNotFoundError. | ||||
* | | ftplib: update connect() docstring by mentioning 'timeout' argument | Giampaolo Rodola' | 2013-04-26 | 1 | -0/+1 |
| | | |||||
* | | (issue 17452 / ftplib) fix TypeError occurring in case ssl module is not ↵ | Giampaolo Rodola' | 2013-03-18 | 1 | -4/+4 |
| | | | | | | | | installed | ||||
* | | Merge 3.3, issue #17047: remove doubled words found in 2.7 to | Terry Jan Reedy | 2013-03-11 | 1 | -2/+2 |
|\ \ | |/ | | | | | 3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett. | ||||
| * | Merge 3.2, issue #17047: remove doubled words found in 2.7 to | Terry Jan Reedy | 2013-03-11 | 1 | -2/+2 |
| |\ | | | | | | | | | | 3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett. | ||||
| | * | Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*, | Terry Jan Reedy | 2013-03-11 | 1 | -2/+2 |
| | | | | | | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett. | ||||
* | | | Refactor ftplib by getting rid of 4 methods (retr*() and stor*()) which were ↵ | Giampaolo Rodola' | 2013-03-07 | 1 | -71/+15 |
| | | | | | | | | | | | | duplicated in TLS_FTP class. | ||||
* | | | PEP8-ify ftplib.py: get rid of multiple statements on one line (if cond: ...) | Giampaolo Rodola' | 2013-03-07 | 1 | -29/+57 |
| | | | |||||
* | | | #6623: Add explicit deprecation warning for ftplib.Netrc. | R David Murray | 2013-02-19 | 1 | -0/+3 |
| | | | |||||
* | | | Replace IOError with OSError (#16715) | Andrew Svetlov | 2012-12-25 | 1 | -4/+4 |
| | | | |||||
* | | | Issue #16717: get rid of socket.error, replace with OSError | Andrew Svetlov | 2012-12-18 | 1 | -4/+4 |
|/ / | |||||
* | | Issue 16646 (ftplib): deliberately use intermediate variable after catching ↵ | Giampaolo Rodola' | 2012-12-17 | 1 | -1/+2 |
|\ \ | |/ | | | | | exception | ||||
| * | Issue 16646 (ftplib): deliberately use intermediate variable after catching ↵ | Giampaolo Rodola' | 2012-12-17 | 1 | -1/+2 |
| | | | | | | | | exception | ||||
* | | Fix issue #16646: ftplib.FTP.makeport() might lose socket error details. ↵ | Giampaolo Rodola' | 2012-12-17 | 1 | -3/+7 |
|\ \ | |/ | | | | | (patch by Serhiy Storchaka) | ||||
| * | Fix issue #16646: ftplib.FTP.makeport() might lose socket error details. ↵ | Giampaolo Rodola' | 2012-12-17 | 1 | -3/+7 |
| | | | | | | | | (patch by Serhiy Storchaka) | ||||
* | | fix #13563: make use of with statement in ftplib.py where needed | Giampaolo Rodola' | 2011-12-10 | 1 | -20/+5 |
| | | |||||
* | | Cleanup code: remove int/long idioms and simplify a while statement. | Florent Xicluna | 2011-10-23 | 1 | -13/+4 |
| | | |||||
* | | Merge: #10883: Fix socket leaks in urllib.request. | Nadeem Vawda | 2011-07-23 | 1 | -25/+31 |
|\ \ | |/ | | | | | | | | | | | | | * ftpwrapper now uses reference counting to ensure that the underlying socket is closed when the ftpwrapper object is no longer in use * ftplib.FTP.ntransfercmd() now closes the socket if an error occurs Initial patch by Victor Stinner. | ||||
| * | Issue #10883: Fix socket leaks in urllib.request. | Nadeem Vawda | 2011-07-23 | 1 | -25/+31 |
| | | | | | | | | | | | | | | | | * ftpwrapper now uses reference counting to ensure that the underlying socket is closed when the ftpwrapper object is no longer in use * ftplib.FTP.ntransfercmd() now closes the socket if an error occurs Initial patch by Victor Stinner. | ||||
* | | Issue 12139: add CCC command support to FTP_TLS class to revert the SSL ↵ | Giampaolo Rodola' | 2011-06-27 | 1 | -0/+8 |
| | | | | | | | | connection back to clear-text. | ||||
* | | merge with 3.2 | Giampaolo Rodola' | 2011-05-07 | 1 | -1/+11 |
|\ \ | |/ |