Skip to content

Commit

Permalink
Merge pull request #8236 from frandominguezl/undefined_spoofdetector
Browse files Browse the repository at this point in the history
  • Loading branch information
Sesquipedalian authored May 26, 2024
2 parents 4af16c9 + 13bec25 commit 7f9b986
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Actions/Register2.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
use SMF\User;
use SMF\Utils;
use SMF\Verifier;
use SMF\Unicode\SpoofDetector;

/**
* Actually registers the new member.
Expand Down Expand Up @@ -706,7 +707,7 @@ public static function registerMember(array &$reg_options, bool $return_errors =
// Call an optional function to validate the users' input.
IntegrationHook::call('integrate_register', [&$reg_options, &$theme_vars, &$known_ints, &$known_floats]);

$reg_options['register_vars']['spoofdetector_name'] = Utils::htmlspecialchars(Unicode\SpoofDetector::getSkeletonString(html_entity_decode($reg_options['register_vars']['real_name'] ?? $reg_options['register_vars']['member_name'], ENT_QUOTES)));
$reg_options['register_vars']['spoofdetector_name'] = Utils::htmlspecialchars(SpoofDetector::getSkeletonString(html_entity_decode($reg_options['register_vars']['real_name'] ?? $reg_options['register_vars']['member_name'], ENT_QUOTES)));

$column_names = [];
$values = [];
Expand Down

0 comments on commit 7f9b986

Please sign in to comment.