Ucenter user name registration prompt: the user name is invalid (with the word "Xin)

Source: Internet
Author: User
Tags php file

Problem: When registering a user name (such as "Shi Kexin") in uchome, the system prompts that the user name is invalid. The system also prompts that the user name is added in the ucenter background.

Cause: because the hexadecimal code of "Xin" in UTF is E6 AC A3. And the model/user in the UCenter. in the php file check_username method, $ guestexp = 'xa1xa1 | xACxA3 | ^ Guest | ^ xD3xCExBFxCD | xB9x43xABxC8 & prime; the filtering rule "| xACxA3" in this row is repeated and therefore cannot be.

Solution: open model/user. php in the UCenter directory and find the check_username method (as shown in the figure above). Delete "| xACxA3.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.