FTPS is a valid protocol for URLs. FTP works... not that I need this myself currently, but I think this is incorrect behavior and should be fixed.

Comments

g089h515r806’s picture

URL validator use valid_url() function to validate external url.
valid_url is a Drupal API function which does not support ftps.
valid_url support ftp, http, https or feed schemes.

hass’s picture

Hm, well now I remember about this limitations. valid_url() is not the best function. It does not allow IDN urls and this becomes more and more a real problem.

g089h515r806’s picture

Status: Active » Closed (works as designed)

use Regex validator as a replacement, here is an expression for uri:

(((file|gopher|news|nntp|telnet|http|ftp|https|ftps|sftp)://)|(www\.))+(([a-zA-Z0-9\._-]+\.[a-zA-Z]{2,6})|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(/[a-zA-Z0-9\&%_\./-~-]*)?