Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
59a67720
authored
2013-09-25 23:07:54 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
xsrf's defaut time set to 0 & fix ts not use
1 parent
93e1206d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
config.go
controller.go
config.go
View file @
59a6772
...
...
@@ -77,7 +77,7 @@ func init() {
HttpServerTimeOut
=
0
ErrorsShow
=
true
XSRFKEY
=
"beegoxsrf"
XSRFExpire
=
6
0
XSRFExpire
=
0
TemplateLeft
=
"{{"
TemplateRight
=
"}}"
ParseConfig
()
...
...
controller.go
View file @
59a6772
...
...
@@ -323,8 +323,6 @@ func (c *Controller) GetSecureCookie(Secret, key string) (string, bool) {
return
""
,
false
}
ts
,
_
:=
strconv
.
ParseInt
(
timestamp
,
0
,
64
)
buf
:=
bytes
.
NewBufferString
(
val
)
encoder
:=
base64
.
NewDecoder
(
base64
.
StdEncoding
,
buf
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment