dsniff-httppostfix.patch 675 B

123456789101112131415161718192021
  1. --- decode_http.c.orig 2000-12-19 07:38:05.000000000 +0800
  2. +++ decode_http.c 2006-03-05 22:32:14.000000000 +0800
  3. @@ -139,14 +139,14 @@
  4. host = p;
  5. }
  6. else if (req[0] == 'P') {
  7. - if (strncmp(p, "Content-type: ", 14) == 0) {
  8. - if (strncmp(p + 14, "application/"
  9. + if (strncasecmp(p, "Content-type: ", 14) == 0) {
  10. + if (strncasecmp(p + 14, "application/"
  11. "x-www-form-urlencoded",
  12. 33) != 0) {
  13. query = NULL;
  14. }
  15. }
  16. - else if (strncmp(p, "Content-length: ", 16) == 0) {
  17. + else if (strncasecmp(p, "Content-length: ", 16) == 0) {
  18. p += 16;
  19. i = atoi(p);
  20. if ((msg = buf_tok(&inbuf, NULL, i)) == NULL)