I found this small error in the lib/admin.class.php.
If you have magic_quotes turned off, you can't update entries in the admin section if there is any single quote in any field.
Simply add this line
just after
and the problem is solved.
17/04/2005 21:48:21
Subject:
Webmaster
Site Admin
Joined: 10/01/2002 23:32:17
Messages: 82
Offline
fixed.
Yes, it's still not 100% bug free.
17/04/2005 23:17:29
Subject:
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
I replaced the whole of
with
Carbonize I am not the maker of the Advanced Guestbook
You forgot to add the reset($_POST) function. You don't where the array pointer is. You have to use reset() if you want to traverse the array again using each.
18/04/2005 10:46:54
Subject:
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
There should be no need to reset the array as it has not been looped. I will test it with magic quotes turned off on my test server but it worked fine on my website.
Carbonize I am not the maker of the Advanced Guestbook
The script has already looped the each($_POST). It's in the first lines of the admin.php.
You wrote the code better, but that doesn't solve the bug I found it on my server.
18/04/2005 11:33:22
Subject:
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
I'll throw in a reset then. From what you have said about the bug something must be causing a problem earlier in the script when magic quotes are off. I'll go through code later and see if I can't tighten anything up.
Carbonize I am not the maker of the Advanced Guestbook
When magic quotes are on, those lines aren't needed so you don't notice the bug.
18/04/2005 17:49:48
Subject:
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
Actually I see what you are on about. I have gone back to the original code as I felt mine increased processing time because it had to read the variable with each item in the array. Anyway I am now using
Carbonize I am not the maker of the Advanced Guestbook