Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #106  
Old 17 Mar 2013, 18:20
docjohn docjohn is offline
 
Join Date: Sep 2004
This is a problem with any game that has the words "and" or "or" in them (e.g., any "Word" game). This is a result of the ibp_cleansql function in the arcade.php, and the developers using this function to check and clean all game name input.

There are two ways to fix this. Create a separate function copied from the existing function, and remove the lines with "and" and "or" in them. Then go through the code and anywhere the code calls ibp_cleansql for game name, simply replace it with your new function name.

Alternatively (and probably less safe, security-wise), just remove the following two lines from ibp_cleansql in arcade.php:

$sqlcomm[] = 'and';
$sqlcomm[] = 'or';
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 20:24.

Layout Options | Width: Wide Color: