Uploaded image for project: 'Support Team Tools'
  1. Support Team Tools
  2. STT-281

Merge users - username converted to integer

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Resolution: Fixed
    • Component/s: Support Toolkit
    • Labels:
      None

      Description

      When a username is entered into the source or target field and the username happens to start with numbers, the username is cast to an integer which is then used for the user_id.

      Lines 63 and 64 of merge_users.php are what is causing the problem:

      		$source = ($source = request_var('source', 0)) ? $source : utf8_normalize_nfc(request_var('source', '', true));
      		$target = ($target = request_var('target', 0)) ? $target : utf8_normalize_nfc(request_var('target', '', true));


      For example, if a username is 2057bulb, the username will be cast to 2057 and will be used as the user_id which is incorrect.

        Attachments

          Activity

            People

            • Assignee:
              D¡cky Richard Foote [X] (Inactive)
              Reporter:
              D¡cky Richard Foote [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: