Thread: MySQL error...
View Single Post
Old April 25th, 2005, 12:23 PM   #27 (permalink)
Michael P
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,860
Okay, we have two issues here that have not been reported during the past year of development and testings:

1) Inserts to the admlog table need to have username sanitized; I'm moving the adminlog() function into the pp-inc.php and converting all the admin log entries to use this function as we sanitize the data before we insert it (including username). This is not an issue for most functions (like who's online) as we sanitize the username, but overlooked it in the admlog portion (probably because nobody testing ad a Moderator or Administrator had a ' in their username).

2) The PHP filename issue has two parts: the first part is making sure we fix the filename before checking to see if it already exists, which I have added. The other is the PHP issue which I hadn't heard of until today. Turns out this "bug" exists in PHP 4.3.10 but was fixed in 4.3.11.

http://bugs.php.net/bug.php?id=31398&edit=3

So, if this is a problem for you, based on what I have read so far I would recommend upgrading your PHP to version 4.3.11 to fix the issue as I'm not sure that we should code a workaround in for a very specific single version of PHP.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote