View Single Post
  #7  
Old 04-02-2009, 09:22 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,585
Seapyramid
Default RE: Page that will display a user's pets (non layout destroying update)

Quote:
Originally Posted by Killgore
Slight issue: Some of my members have spaces in their username, and it refuses to even acknowledge that the user exists. Is there a way to fix this, or am i over-looking something?
I had the same issue but was able to fix the problem

if you replace line 77 with

Code:
$owner = preg_replace("/[^a-zA-Z0-9\x20]/", "", $owner);
it will accept the space but still disallow other chara for security

Sea