Jump to content
MakeWebGames

.


gpo26

Recommended Posts

"delete" and "where" - both sql keywords. Most likely someone has installed something to str_replace sql keywords with null.

Try the following words;

CREATE
DROP
ALTER

 

Also, search your script.

  • Check your database table forum_replies to see if the words are missing there, if they are, check the function that processes the reply (forums.php)
Link to comment
Share on other sites

Create, drop, and alter all appear fine.

There is no forum_replies table on mine, but there is a forum_posts table. When I checked the table for the latest test post, the same two did not appear (delete and where). However, I can add "delete" and "where" to a post via MySQL.

Do you have a line number I can find? There's 906 lines in forums.php and I'm not sure what to look for.

Hmm, okay...

Do you have Skype so I can assist better?

 

  • Go to your forums, and reply to a thread.
  • Inspect the URL and check the action value.
  • Go to your forums source, and find the 'switch & case' section, and retrieve the function name from that (from the action value found earlier).
  • Copy that function here
Link to comment
Share on other sites

  • 2 months later...

Im having this exact same problem, which part did you remove from the global functions was it

function Clean($Var) {

if (get_magic_globals_gpc() == 1) {

$Var = stripslashes($Var);

}

$Var = mysql_real_escape_string(htmlentities($Var));

return $Var;

}

Link to comment
Share on other sites

  • gpo26 changed the title to .

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...