Author Topic: Error in lib/dbwrapper_mysql.php - superfluous code  (Read 3468 times)

Nightborn

  • Administrator
  • Sr. Member
  • *****
  • Posts: 318
  • Karma: +20/-0
    • View Profile
    • Shinobilegends
Error in lib/dbwrapper_mysql.php - superfluous code
« on: June 03, 2009, 11:52:14 am »
*cough*

sorry, it seems my private logging was carried over to the nb-snapshots :( this occurs in 1.2.0 and ongoing until the 1.2.2 beta

sorry. please re-download the package you got and replace:

lib/dbwrapper_mysql.php


That should do the trick.

I have fixed all versions.

If not, tell me.

The code you can safely remove is:

Code: [Select]

62                 if ($data==array() && strpos($name,"inject")!==false) {
 63                         //log for me
 64                         System("echo \"".date("Y:m:d H:i:s:").": Sorry, we g    ot an empty query here: $sql\" >>/var/log/shino/emptyqueries.log");
 65                         System("echo >>/var/log/shino/emptyqueries.log");
 66                 }

This was done to log empty queries on my server.
It should be fixed, but it won't be easy and it won't be fast. If you want
to help - wonderful. But keep in mind that it will take months of wading
through the ugliest code we have in the tree. If you've got a weak stomach -
stay out. I've been there and it's not a nice place.

   - Al Viro