镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

URL validation arbitrarily supports FTP, but not other protocols #55

Description

@nicbou

A URL can have any of an arbitrary number of protocols, but only HTTP, HTTPS and FTP are supported. If we have to arbitrarily restrict which protocols are allowed, we should at least follow the principle of least surprise and only allow HTTP(S). FTP is a weird addition.

Alternatively, supported protocols could be supplied.

Activity

  1. kvesteri commented on May 18, 2017

    @kvesteri
    Collaborator

    Fully agree on all your points. The best way would be if user could set which schemes are allowed.

  2. sireliah commented on Nov 1, 2019

    @sireliah

    Hi! I second that. The list of possibly useful schemes is provided by IANA: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml

    I think we can safely skip the historical ones, however some are nice-to-haves:

    rsync://
    ldap://
    rmi://
    redis://
    mongodb://
    sftp://
    

    etc.

    Let's discuss if this is feasible to include larger amount of schemes from document I posted.

  3. added
    duplicateIssue/PR: Redundant
    enhancementIssue/PR: A new feature
    outdatedIssue/PR: Open for more than 3 months
    on Mar 14, 2023
  4. nandgator commented on Mar 14, 2023

    @nandgator
    Collaborator

    related #40 #55

  5. added a commit that references this issue on Mar 17, 2023
    c43826c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssue/PR: RedundantenhancementIssue/PR: A new featureoutdatedIssue/PR: Open for more than 3 months

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions