Bugfix: user cookies should be validated as serializable.
This breaks UD's current cookie mechanism, but it's easily fixed. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@350 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -432,6 +432,7 @@ public class GameControlBackend
|
||||
public function setUserCookie_v1 (cookie :Object) :Boolean
|
||||
{
|
||||
validateConnected();
|
||||
validateValue(cookie);
|
||||
var ba :ByteArray =
|
||||
(EZObjectMarshaller.encode(cookie, false) as ByteArray);
|
||||
if (ba.length > MAX_USER_COOKIE) {
|
||||
|
||||
Reference in New Issue
Block a user