Skip to content

ftp: replace strstr() in ;type= handling#19069

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/ftp-type
Closed

ftp: replace strstr() in ;type= handling#19069
bagder wants to merge 1 commit into
masterfrom
bagder/ftp-type

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Oct 15, 2025

Since it needs to be a trailing piece of the path avoiding strstr() is faster and more reliable.

Also stopped checking the host name since it cannot actually be there since quite a long while back. The URL parser doesn't allow such a hostname.

Moved the check into its own subfunction too.

Since it needs to be a trailing piece of the path avoiding strstr() is
faster and more reliable.

Also stopped checking the host name since it cannot actually be there
since quite a long while back. The URL parser doesn't allow such a
hostname.

Moved the check into its own subfunction too.
@bagder bagder marked this pull request as ready for review October 15, 2025 06:30
Comment thread lib/ftp.c
@bagder bagder closed this in 5ac3541 Oct 15, 2025
@bagder bagder deleted the bagder/ftp-type branch October 15, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants