mirror of
https://github.com/curl/curl.git
synced 2026-08-02 22:20:27 +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
|
|
@ -834,7 +834,7 @@ const struct helptxt helptext[] = {
|
|||
CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD},
|
||||
{"-B, --use-ascii",
|
||||
"Use ASCII/text transfer",
|
||||
CURLHELP_FTP | CURLHELP_OUTPUT | CURLHELP_LDAP},
|
||||
CURLHELP_FTP | CURLHELP_OUTPUT | CURLHELP_LDAP | CURLHELP_TFTP},
|
||||
{"-u, --user <user:password>",
|
||||
"Server user and password",
|
||||
CURLHELP_IMPORTANT | CURLHELP_AUTH},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue