mirror of
https://github.com/curl/curl.git
synced 2026-07-24 16:37:16 +03:00
tftp: check for trailing ";mode=" in URL without strstr
RFC 3617 defines two specific modes, "netascii" and "octet". This code now checks only for those trailing ones - and not in the hostname since they can't be there anymore. Assisted-by: Jay Satiro Closes #19070
This commit is contained in:
parent
5ac3541cb4
commit
be852e39b2
4 changed files with 18 additions and 33 deletions
|
|
@ -4,8 +4,8 @@ SPDX-License-Identifier: curl
|
|||
Short: B
|
||||
Long: use-ascii
|
||||
Help: Use ASCII/text transfer
|
||||
Protocols: FTP LDAP
|
||||
Category: ftp output ldap
|
||||
Protocols: FTP LDAP TFTP
|
||||
Category: ftp output ldap tftp
|
||||
Added: 5.0
|
||||
Multi: boolean
|
||||
See-also:
|
||||
|
|
@ -18,5 +18,6 @@ Example:
|
|||
# `--use-ascii`
|
||||
|
||||
Enable ASCII transfer mode. For FTP, this can also be enforced by using a URL
|
||||
that ends with `;type=A`. This option causes data sent to stdout to be in text
|
||||
mode for Win32 systems.
|
||||
that ends with `;type=A`. For TFTP, this can also be enforced by using a URL
|
||||
that ends with `;mode=netascii`. This option causes data sent to stdout to be
|
||||
in text mode for Win32 systems.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue