1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-27 18:05:47 +00:00

beego: fix flash errors

This commit is contained in:
astaxie 2014-04-10 18:14:18 +08:00
parent 127b85bcaa
commit e50cbecf80

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]
}