MDL-17942 improved mysql truncation prevention

This commit is contained in:
skodak
2009-01-18 23:12:14 +00:00
parent 64d69e966c
commit 200f26cf18
+1 -1
View File
@@ -426,7 +426,7 @@ class database_session extends session_stub {
}
}
if ($record->sessdatahash !== null) {
if ($record->sessdata !== null) {
if (md5($record->sessdata) !== $record->sessdatahash) {
// probably this is caused by misconfigured mysql - the allowed request size might be too small
try {