Ignore:
Timestamp:
Jul 2, 2013, 8:03:46 PM (12 years ago)
Author:
Herwig Bauernfeind
Message:

Samba Server 3.5: Update branch to 3.5.21

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/web/swat.c

    r732 r774  
    149149        uint8_t token[16];
    150150        int i;
     151        char *nonce = cgi_nonce();
    151152
    152153        token_str[0] = '\0';
     
    162163                MD5Update(&md5_ctx, (uint8_t *)pass, strlen(pass));
    163164        }
     165        MD5Update(&md5_ctx, (uint8_t *)nonce, strlen(nonce));
    164166
    165167        MD5Final(token, &md5_ctx);
     
    261263                printf("Expires: 0\r\n");
    262264        }
    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");
    264267
    265268        if (!include_html("include/header.html")) {
Note: See TracChangeset for help on using the changeset viewer.