Commit 3200420b authored by robertdavidgraham's avatar robertdavidgraham
Browse files

#56 XML banner fix

parent 3e9b90dd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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>"
+1 −1
Original line number Diff line number Diff line
@@ -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 {