XFileSharing Pro - spaces in user names got File Not Found

Message
Author
hscorp
Posts: 143
Joined: Nov 12, 2008 5:36 pm

spaces in user names got File Not Found

#1 Postby hscorp » Nov 15, 2008 11:46 pm

for example my user name is Mai Share

so my page will be

http://www.maishare.com/Mai Share

if you tried to open it you'll get File Not Found error

so whats the solution ?

regards

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Nov 17, 2008 7:46 am

Try this one: in htdocs/.htaccess find line

Code: Select all

RewriteRule    ^([0-9A-Za-z\-_]{4,64})(/[^\/]*/?|$)$		/cgi-bin/index.cgi?op=user_public&usr_login=$1&fld=$2 [L,NC]
and replace there

Code: Select all

[0-9A-Za-z\-_]
with

Code: Select all

[0-9A-Za-z\-_\s]

hscorp
Posts: 143
Joined: Nov 12, 2008 5:36 pm

#3 Postby hscorp » Nov 17, 2008 7:14 pm

worked fine :)

i think you should edit it in the next version

regards

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Nov 18, 2008 1:47 pm

I think I should restrict usernames to not allow spaces.