選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

14 行
684B

  1. <%
  2. '=======================================================================================================================
  3. ' CSRF helpers: thin wrappers over the core HTMLSecurity token (one token per form family name, stored in the session)
  4. '=======================================================================================================================
  5. Function Csrf_Token(name)
  6. Csrf_Token = HTMLSecurity().GetAntiCSRFToken(name)
  7. End Function
  8. ' True only for a non-empty token that matches the session's token for this form family.
  9. Function Csrf_Valid(name, token)
  10. Csrf_Valid = (Len(token) > 0 And HTMLSecurity().IsValidAntiCSRFToken(name, token))
  11. End Function
  12. %>

Powered by TurnKey Linux.