Changeset 774 for branches/samba-3.5.x/source3/web/swat.c
- Timestamp:
- Jul 2, 2013, 8:03:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/web/swat.c
r732 r774 149 149 uint8_t token[16]; 150 150 int i; 151 char *nonce = cgi_nonce(); 151 152 152 153 token_str[0] = '\0'; … … 162 163 MD5Update(&md5_ctx, (uint8_t *)pass, strlen(pass)); 163 164 } 165 MD5Update(&md5_ctx, (uint8_t *)nonce, strlen(nonce)); 164 166 165 167 MD5Final(token, &md5_ctx); … … 261 263 printf("Expires: 0\r\n"); 262 264 } 263 printf("Content-type: text/html\r\n\r\n"); 265 printf("Content-type: text/html\r\n"); 266 printf("X-Frame-Options: DENY\r\n\r\n"); 264 267 265 268 if (!include_html("include/header.html")) {
Note:
See TracChangeset
for help on using the changeset viewer.