1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-24 14:10:53 +00:00

beego: fix flash errors

This commit is contained in:
astaxie 2014-04-10 18:14:18 +08:00
parent 82ca85dc65
commit 3e16feb1e2

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