1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 00:06:55 +02:00

Fix on the modules install screen when entering a module name with trailing whitespace so that it doesn't get converted to underscore and result in unknown module message

This commit is contained in:
Ryan Cramer
2024-11-15 14:28:44 -05:00
parent b374ed83e2
commit 06ac399319

View File

@@ -1060,7 +1060,7 @@ class ProcessModule extends Process {
$sanitizer = $this->wire()->sanitizer; $sanitizer = $this->wire()->sanitizer;
$session = $this->wire()->session; $session = $this->wire()->session;
$name = $sanitizer->name($name); $name = $sanitizer->name(trim($name));
$info = self::getModuleInfo(); $info = self::getModuleInfo();
$this->headline($this->labels['download_install']); $this->headline($this->labels['download_install']);
$this->breadcrumb('./', $info['title']); $this->breadcrumb('./', $info['title']);