vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   AdminCP issues search for certain usernames (https://vborg.vbsupport.ru/showthread.php?t=306375)

pattycake 12-28-2013 03:27 PM

AdminCP issues search for certain usernames
 
In AdminCP, I am noticing that it has issues and cannot find usernames with special characters in them.

For instance, username: '07 EXC (it has a single quote at the beginning)

When searching for that username, exact match or otherwise, AdminCP says it cannot be found. But when I search by the persons email, it finds it.

pattycake 12-31-2013 03:07 AM

I found another... username: "GS eh!" (without the quotes)

AdminCP cannot find him, but if I search by his email address, he gets found.

If I search by username = GS EH (without the !), he gets found.... it's the ! at the end that is causing the problem

The REAL problem, is that he cannot login.

pattycake 01-08-2014 12:40 AM

update - I found the problem... when I converted my usernames to vbulletin, the usernames in my previous table
had things like "& #39;" for a single quote.

Meaning that it was STORED as "Jim& #39;s Son" in the database when it should have been Jim's Son.

In the post just before this one, the user's name was stored in the database as GS eh& #33; and in reality, it was actaully GS eh!

When I imported into vbulletin, I did not convert the values - once I did a mass update to correct the usernames, all was well.

ticket closed :)

Max Taxable 01-08-2014 12:49 AM

Sorry i missed this thread, i would have helped. Glad you got it sorted.

pattycake 01-08-2014 01:04 AM

fyi: here is the sql to find those guys:
SELECT * FROM `user` WHERE username LIKE '%&#%' (those are percents at the front and back)

here are some good sql's to fix the problem
UPDATE user SET username = REPLACE(username, '& #39;', '\'')
UPDATE user SET username = REPLACE(username, '& #33;', '!')
UPDATE user SET username = REPLACE(username, '& #036;', '$')
UPDATE user SET username = REPLACE(username, '& #124;', '|')

of course, change "user" to your user table name and.... remove the space between & and #


All times are GMT. The time now is 09:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01069 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete