mirror of
https://github.com/astaxie/beego.git
synced 2024-11-24 16:40:54 +00:00
beego: fix flash errors
This commit is contained in:
parent
82ca85dc65
commit
3e16feb1e2
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