Skip to content
  • Luis Javier Merino's avatar
    URI: be more strict with www. URIs · a2d91de8
    Luis Javier Merino authored and Ahmad Samir's avatar Ahmad Samir committed
    We recognize URIs that start with an scheme and a possibly empty
    authority, and URI suffixes that start with "www."
    
    In the case of URIs starting with an scheme, they are of the form:
    
    scheme://[ userinfo "@" ] host ...
    
    while "www." URI suffixes are of the form:
    
    www. <rest of host> ...
    
    where host is actually in reg-name form (not in IPv4address or
    IP-literal form).
    
    This commit allows more strict parsing of e.g.
    
    www.example.com:foo@bar.com
    
    as <URI>:<email> instead of as a long <URI>.
    a2d91de8