beego: fix flash errors

This commit is contained in:
astaxie 2014-04-10 18:14:18 +08:00
parent 82ca85dc65
commit 3e16feb1e2
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func ReadFromRequest(c *Controller) *FlashData {
vals := strings.Split(v, "\x00")
for _, v := range vals {
if len(v) > 0 {
kv := strings.Split(v, FlashSeperator)
kv := strings.Split(v, "\x23"+FlashSeperator+"\x23")
if len(kv) == 2 {
flash.Data[kv[0]] = kv[1]
}