View Single Post
  #11  
Old 03-01-2008, 08:18 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Chompy View Post
Well, the only thing that I would like to point out, is the use of tokenize without a paremeter, because atm you don't use a parameter, and tokenize without a parameter will tokenize spaces and commas, so if an account with a space in it is listed in the ACCESS enum, the account with a space in it won't function properly,..

PHP Code:
function onCreated() {
  
temp.test "Chompy,Te st,foo";
  
  echo(
test.tokenize());
  echo(
test.tokenize(","));

Output:

PHP Code:
Chompy,Te,st,foo   // size() = 4
Chompy,"Te st",foo // size() = 3 
So it should be ACCESS.tokenize(","); instead of ACCESS.tokenize(); in the hasAccess(acc) function
Give me a break, I spent all night converting a 2 year old code.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote