Merge pull request #12363 from corydlamb/Ampersand-Patch

Fixed #12362: Bug With Passwords Including Ampersands?
This commit is contained in:
snipe 2023-01-17 19:17:50 -08:00 committed by GitHub
commit 7e22663326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,11 +19,11 @@ class WelcomeNotification extends Notification
*/ */
public function __construct(array $content) public function __construct(array $content)
{ {
$this->_data['email'] = $content['email']; $this->_data['email'] = htmlspecialchars_decode($content['email']);
$this->_data['first_name'] = $content['first_name']; $this->_data['first_name'] = htmlspecialchars_decode($content['first_name']);
$this->_data['last_name'] = $content['last_name']; $this->_data['last_name'] = htmlspecialchars_decode($content['last_name']);
$this->_data['username'] = $content['username']; $this->_data['username'] = htmlspecialchars_decode($content['username']);
$this->_data['password'] = $content['password']; $this->_data['password'] = htmlspecialchars_decode($content['password']);
$this->_data['url'] = url('/'); $this->_data['url'] = url('/');
} }