mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 21:09:00 +00:00
I copied parse_url_relative from favicon-survey.nse. Ron Meldau reported that this error is raised: http-favicon.nse:141: variable 'dirname' is not declared It happens when a web page specifies a relative icon URL in a link element. (dirname is used to absolutize the URL.) Also, I changed to code to be sure to pass a plain string and number for the host and port to parse_url_relative. Otherwise parse_url_relative may return the tables that it receives and complicate the matching code to decide if a URL should be followed.
5.1 KiB
5.1 KiB