mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 17:31:29 +00:00
beego: fix flash errors
This commit is contained in:
parent
127b85bcaa
commit
e50cbecf80
2
flash.go
2
flash.go
@ -64,7 +64,7 @@ func ReadFromRequest(c *Controller) *FlashData {
|
|||||||
vals := strings.Split(v, "\x00")
|
vals := strings.Split(v, "\x00")
|
||||||
for _, v := range vals {
|
for _, v := range vals {
|
||||||
if len(v) > 0 {
|
if len(v) > 0 {
|
||||||
kv := strings.Split(v, FlashSeperator)
|
kv := strings.Split(v, "\x23"+FlashSeperator+"\x23")
|
||||||
if len(kv) == 2 {
|
if len(kv) == 2 {
|
||||||
flash.Data[kv[0]] = kv[1]
|
flash.Data[kv[0]] = kv[1]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user