Skip to content
Permalink
Browse files

Escape single quotes in .info.ym file generation for generate:module …

…cmd (#3972)
  • Loading branch information...
NickWilde1990 authored and LOBsTerr committed Apr 5, 2019
1 parent eeba535 commit 754b55f9b629f44d4ce7b169d2273696e5066291
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/Generator/ModuleGenerator.php
@@ -61,6 +61,11 @@ public function generate(array $parameters)
$parameters['type'] = 'module';
// Escape single quotes in long parameter strings.
foreach(['description', 'module'] as $param) {
$parameters[$param] = str_replace("'", "''", $parameters[$param]);
}
$this->renderFile(
'module/info.yml.twig',
$moduleDirectory . '/' . $machineName . '.info.yml',

0 comments on commit 754b55f

Please sign in to comment.
You can’t perform that action at this time.