Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
$replace_pattern = '[^a-z0-9_.]+';
$transliterated = Unicode::strtolower($transliterated);
if (isset($replace_pattern)) {
how often will that if
be FALSE
:) ? Kris, did we want something to modify or pass that pattern in?
Also, why are we not running the simple PHP strtolower
here? It's past translit, we know it's ASCII.
Comments
Comment #1
chx CreditAttribution: chx commentedComment #4
tim.plunkettDuplicate of #2508735: Code injection via preg_replace()