Fix typo (#4814)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
ba2c9f975e
Коммит
f4450c4bbc
@@ -140,7 +140,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
if (h.requireSystemAdmin || h.requireUser) && !h.trustRequester {
|
if (h.requireSystemAdmin || h.requireUser) && !h.trustRequester {
|
||||||
if r.Header.Get(model.HEADER_REQUESTED_WITH) != model.HEADER_REQUESTED_WITH_XML {
|
if r.Header.Get(model.HEADER_REQUESTED_WITH) != model.HEADER_REQUESTED_WITH_XML {
|
||||||
c.Err = model.NewLocAppError("ServeHTTP", "api.context.session_expired.app_error", nil, "token="+token+" Appears to bea CSRF attempt")
|
c.Err = model.NewLocAppError("ServeHTTP", "api.context.session_expired.app_error", nil, "token="+token+" Appears to be a CSRF attempt")
|
||||||
token = ""
|
token = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user