Skip to content

Sanitizer PageNameTranslate returns empty result with dots #1948

@flipzoom

Description

@flipzoom

There is a problem with the sanitizer methods:

$sanitizer->pageNameTranslate('String');
$sanitizer->pageName('String', Sanitizer::translate);

insofar as the dot is configured in the "InputfieldPageName" module so that the dot is not allowed (the dot is replaced by nothing; this is necessary for specific bug with the ProCache buster method C and path versioning).

image

This means that if the string contains a dot, nothing is returned. It should actually be the case that the dot is simply removed and the rest of the string is returned.

image

Setup/Environment

  • ProcessWire version: 3.0.229
  • PHP version: 8.2 and 8.3
  • InputfieldPageName: 1.0.6

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