Browse Source

use buffer_string_set_length() to truncate strings

personal/stbuehler/mod-csrf-old
Glenn Strauss 6 years ago
parent
commit
f3e36ccdbb
  1. 2
      src/request.c

2
src/request.c

@ -248,7 +248,7 @@ int http_request_host_normalize(buffer *b) {
return -1;
}
} /*(else ignore stray colon at string end)*/
buffer_commit(b, (size_t)(colon - p)); /*(remove port str)*/
buffer_string_set_length(b, (size_t)(colon - p)); /*(remove port str)*/
}
if (light_isdigit(*p)) {

Loading…
Cancel
Save