forked from science-ation/science-ation
Forward port mysql 5.1 16 character username limit difference
This commit is contained in:
parent
e0f0a5dd90
commit
9230b559db
@ -76,6 +76,14 @@ else {
|
||||
echo "</body></html>";
|
||||
exit;
|
||||
}
|
||||
/*
|
||||
difference between MySQL <5.1 and 5.1:
|
||||
in <5.1 in must have internall truncated it at 16 before comparing with the hard-coded 16 character database limit
|
||||
in 5.1 it doesnt truncate and compares the full string with the hardcoded 16 character limit, so all our very long usernames
|
||||
are now failing
|
||||
James - Dec 30 2010
|
||||
*/
|
||||
$DBUSER=substr($DBUSER,0,16);
|
||||
|
||||
if(!mysql_connect($DBHOST,$DBUSER,$DBPASS)) {
|
||||
echo "<html><head><title>SFIAB ERROR</title></head><body>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user