Skip to content

Commit

Permalink
Merge pull request #3743 from Spuds/Patch_1_1_10
Browse files Browse the repository at this point in the history
Custom field check exception with wrong value count sent to vsprintf
  • Loading branch information
Spuds authored Jan 29, 2024
2 parents aa04799 + af3e6b9 commit a02cac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/controllers/Register.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
* license: BSD, See included LICENSE.TXT for terms and conditions.
*
* @version 1.1.9
* @version 1.1.10
*
*/

Expand Down Expand Up @@ -470,7 +470,7 @@ public function do_register($verifiedOpenID = false)
if ($is_valid !== true)
{
$err_params = array($row['name']);
if ($is_valid === 'custom_field_not_number')
if ($is_valid === 'custom_field_too_long')
$err_params[] = $row['field_length'];

$reg_errors->addError(array($is_valid, $err_params));
Expand Down

0 comments on commit a02cac0

Please sign in to comment.