Loading src/out-xml.c +1 −2 Original line number Diff line number Diff line Loading @@ -104,8 +104,7 @@ xml_out_banner(struct Output *out, FILE *fp, time_t timestamp, "<address addr=\"%u.%u.%u.%u\" addrtype=\"ipv4\"/>" "<ports>" "<port protocol=\"%s\" portid=\"%u\">" "<service name=\"%s\">" "<banner>%s</banner>" "<service name=\"%s\" banner=\"%s\">" "</service>" "</port>" "</ports>" Loading src/output.c +1 −1 Original line number Diff line number Diff line Loading @@ -141,7 +141,7 @@ normalize_string(const unsigned char *px, size_t length, for (i=0; i<length; i++) { unsigned char c = px[i]; if (isprint(c) && c != '<' && c != '>' && c != '&' && c != '\\') { if (isprint(c) && c != '<' && c != '>' && c != '&' && c != '\\' && c != '\"' && c != '\'') { if (offset + 2 < buf_len) buf[offset++] = px[i]; } else { Loading Loading
src/out-xml.c +1 −2 Original line number Diff line number Diff line Loading @@ -104,8 +104,7 @@ xml_out_banner(struct Output *out, FILE *fp, time_t timestamp, "<address addr=\"%u.%u.%u.%u\" addrtype=\"ipv4\"/>" "<ports>" "<port protocol=\"%s\" portid=\"%u\">" "<service name=\"%s\">" "<banner>%s</banner>" "<service name=\"%s\" banner=\"%s\">" "</service>" "</port>" "</ports>" Loading
src/output.c +1 −1 Original line number Diff line number Diff line Loading @@ -141,7 +141,7 @@ normalize_string(const unsigned char *px, size_t length, for (i=0; i<length; i++) { unsigned char c = px[i]; if (isprint(c) && c != '<' && c != '>' && c != '&' && c != '\\') { if (isprint(c) && c != '<' && c != '>' && c != '&' && c != '\\' && c != '\"' && c != '\'') { if (offset + 2 < buf_len) buf[offset++] = px[i]; } else { Loading