Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0] Fix undefined SpoofDetector error on Register #8236

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading