﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24422	Messages framework not correctly encoding messages	YPCrumble	nobody	"I'm using Django 1.7.5. I added the messages framework that added a cookie to my machine. When I send a request from my browser, my cookie is included in the following raw_cookie  string:

'djdttop=29; messages=71cd3671ca23bf7d6a599fb79d21a35c119780a4$[[\\""__json_message\\""\\0540\\05420\\054\\""This is my message.\\""]\\054[\\""__json_message\\""\\0540\\05425\\054\\""My second messages.\\""]]; sessionid=dqvje0lqh8czad0r7qxm2in4c7g3i25z; djdtRedirectsPanel=on; djdtSettingsPanel=off; djdtHeadersPanel=off; csrftoken=cRDz29PIcf0M2jmMgJdfehb8JUTvyPik; djdtTimerPanel=on; djdt=show'

When python tries to decode this string (using Cookie.SmartCookie), it only outputs: <SmartCookie: djdttop='29'>

It's because my messages have been improperly encoded. If you take out the messages from the string, the rest of the cookies decode fine. Somehow Django isn't correctly encoding the messages cookie and it's interrupting other cookies in my browser."	Uncategorized	closed	Uncategorized	1.7	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
