Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
@ -67,7 +67,9 @@ class MachineNameController implements ContainerInjectionInterface {
|
|||
$transliterated = Unicode::strtolower($transliterated);
|
||||
}
|
||||
if(isset($replace_pattern) && isset($replace)) {
|
||||
$transliterated = preg_replace('@' . $replace_pattern . '@', $replace, $transliterated);
|
||||
// Quote the pattern delimiter and remove null characters to avoid the e
|
||||
// or other modifiers being injected.
|
||||
$transliterated = preg_replace('@' . strtr($replace_pattern, ['@' => '\@', chr(0) => '']) . '@', $replace, $transliterated);
|
||||
}
|
||||
return new JsonResponse($transliterated);
|
||||
}
|
||||
|
|
Reference in a new issue