Was triggering errors due to use of common_canonical_nickname() on arbitrary input without checking for exceptions about invalid nicknames (which didn't exist long ago in the before time)
$user = User::staticGet('email', common_canonical_email($nore));
if (!$user) {
- $user = User::staticGet('nickname', common_canonical_nickname($nore));
+ try {
+ $user = User::staticGet('nickname', common_canonical_nickname($nore));
+ } catch (NicknameException $e) {
+ // invalid
+ }
}
# See if it's an unconfirmed email address