Warning: preg_replace_callback(): Requires argument 2, '$func['entity_fix']('\2')', to be a valid callback in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3
Duplicate Logins
DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 20, 2019, 03:15:29 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Duplicate Logins  (Read 1365 times)
0 Members and 1 Guest are viewing this topic.
Aeolus
Mod God
*****
Offline Offline

Posts: 1934


You're welcome.


View Profile WWW
« on: February 02, 2014, 06:40:53 AM »

It has come to my attention that when creating a character, the login The Doctor is actually different to The   Doctor (using multiple spaces), which could create issues.

To fix this, in create.php, add this:
Code:
<?php
$shortname 
preg_replace("/\s+/"" "$shortname);

Before this:
Code:
<?php
$sql 
"SELECT name FROM " db_prefix("accounts") . " WHERE login='$shortname'";

It changes all multiple spaces to a single space.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
85 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search