Skip to content

Config Core.AllowHostnameUnderscore work incorrectly #405

@lenhatthanh20

Description

@lenhatthanh20

Hello,

Im try to using the config Core.AllowHostnameUnderscore to allow underscore (_) in the hostname.
Ref: http://htmlpurifier.org/live/configdoc/plain.html#Core.AllowHostnameUnderscore
But it works incorrectly in some cases.

For example:

  • This URL will work: https://ex_mple.com/foo/bar
  • This URL will not work: http://example_.com/foo/bar
  • This URL will not work: http://_sip._udp.apnic.net

Do you have any alternative solution for this issue?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions