Error with spaces in Category Name

Lists acquired dungeon keys for Azeroth and Outland and progress of characters obtaining keys<br/>
Requires [url=viewforum.php?f=143]MembersList[/url] AddOn

Error with spaces in Category Name

Postby Merage » Thu Jun 26, 2008 3:42 am

I've tried creating separate categories for keys as well as Old World and Buring Crusade. However, I was getting an error that the addon contained invalid characters. Characters such as "-" or "_" work, but is there a place in the code I can alter to make it accept spaces?
Last edited by Merage on Fri Jun 27, 2008 1:38 am, edited 1 time in total.
User avatar
Merage
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Aug 30, 2007 6:27 am

Seperate Azeroth/Outland Keys

Postby zanix » Thu Jun 26, 2008 8:36 am

Roster tries to detect invalid characters in the Roster URL
When you make a category with an invalid character, then it complains
Looks like a space is an invalid character

It's a small oversight on the development of this addon

The restriction is set in lib/roster.php
Line 227
It is a reg_ex expression meant to only allow certain characters
'/[^a-zA-Z0-9_-]/'
This allows only a-z 0-9 - _

I do not know how to add space as an accepted character
Just adding a space in this causes an error
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Seperate Azeroth/Outland Keys

Postby PleegWat » Thu Jun 26, 2008 1:24 pm

Add \s to allow any whitespace, including space, tab, and newline.
Newline is invalid in URLs already though.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Seperate Azeroth/Outland Keys

Postby Merage » Thu Jun 26, 2008 9:10 pm

Thanks a ton, that fixed it!
User avatar
Merage
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Aug 30, 2007 6:27 am


Return to InstanceKeys

Who is online

Users browsing this forum: No registered users and 0 guests

cron