Changeset 860 for vendor/current/source3/web/swat.c
- Timestamp:
- May 12, 2014, 8:58:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/web/swat.c
r746 r860 155 155 uint8_t token[16]; 156 156 int i; 157 char *nonce = cgi_nonce(); 157 158 158 159 token_str[0] = '\0'; … … 168 169 MD5Update(&md5_ctx, (uint8_t *)pass, strlen(pass)); 169 170 } 171 MD5Update(&md5_ctx, (uint8_t *)nonce, strlen(nonce)); 170 172 171 173 MD5Final(token, &md5_ctx); … … 267 269 printf("Expires: 0\r\n"); 268 270 } 269 printf("Content-type: text/html\r\n\r\n"); 271 printf("Content-type: text/html\r\n"); 272 printf("X-Frame-Options: DENY\r\n\r\n"); 270 273 271 274 if (!include_html("include/header.html")) {
Note:
See TracChangeset
for help on using the changeset viewer.