Skip to content

Commit add71d5

Browse files
authored
Merge pull request #1153 from mdoutreluingne/fix-escape-apostrophe
[make:registration-form] Fix escape text-strings
2 parents d11bcb4 + a9dc1a5 commit add71d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Maker/MakeRegistrationForm.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
160160
$this->emailGetter = $interactiveSecurityHelper->guessEmailGetter($io, $this->userClass, 'email');
161161

162162
$this->fromEmailAddress = $io->ask(
163-
'What email address will be used to send registration confirmations? e.g. [email protected]',
163+
'What email address will be used to send registration confirmations? (e.g. <fg=yellow>[email protected]</>)',
164164
null,
165165
[Validator::class, 'validateEmailAddress']
166166
);
167167

168168
$this->fromEmailName = $io->ask(
169-
'What "name" should be associated with that email address? e.g. "Acme Mail Bot"',
169+
'What "name" should be associated with that email address? (e.g. <fg=yellow>Acme Mail Bot</>)',
170170
null,
171171
[Validator::class, 'notBlank']
172172
);
@@ -343,7 +343,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
343343
'email_verifier_class_details' => $verifyEmailServiceClassNameDetails,
344344
'verify_email_anonymously' => $this->verifyEmailAnonymously,
345345
'from_email' => $this->fromEmailAddress,
346-
'from_email_name' => $this->fromEmailName,
346+
'from_email_name' => addslashes($this->fromEmailName),
347347
'email_getter' => $this->emailGetter,
348348
'authenticator_class_name' => $this->autoLoginAuthenticator ? Str::getShortClassName($this->autoLoginAuthenticator) : null,
349349
'authenticator_full_class_name' => $this->autoLoginAuthenticator,

0 commit comments

Comments
 (0)