Skip to content

Attempt to index field 'body' (a nil value) #1

@ryanohoro

Description

@ryanohoro

When the script fails to connect to a site for whatever reason, the content will be empty and error handling isn't sufficient.

NSE: http-wordpress-info against 10.0.0.24:80 threw an error!
scripts\http-wordpress-info.nse:102: attempt to index field 'body' (a nil value)
stack traceback:
        scripts\http-wordpress-info.nse:102: in function <scripts\http-wordpress-info.nse:71>
        (...tail calls...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions