Skip to content

Fatal error when $config->pageNameWhitelist leave blank and $config->pageNameCharset = UTF8 if use non ASCII characters in page name. #2215

@gideonso

Description

@gideonso

SYMPTOM

When creating or editing a page with Chinese characters in the page name
(e.g., 關於我們) while $config->pageNameCharset = "UTF8" and
$config->pageNameWhitelist = "" (empty), a fatal error occurs:

Fatal Error: Uncaught ValueError: idn_to_ascii(): Argument #1 ($domain)
must not be empty in Sanitizer.php:1138

Environment

PHP 8.4
ProcessWire 2.6.260

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions