Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
12/10/2004 14:12:09
|
Anonymous
|
Problem:
I try to send comment, but database wont accept it.
Sollution:
browser field in database is omited on 70 chars. Some browsers (Mozilla firefox 0.9.2) generate string with more than 70 chars so Insert script get error.
open include/class_pollcomment.php
search for string $agent
replace line
$agent=@getenv("HTTP_USER_AGENT");
with
$agentAll=@getenv("HTTP_USER_AGENT");
$agent=substr($agent,0.6;
This will trim string to 69 characters
|
|
12/10/2004 14:15:24
|
Anonymous
|
...
$agent=substr($agentAll, 0 , 69 );
|
|
|
|
|
|
Based on the open source JForum
|