1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 20:51:30 +00:00

Use uppercase hex digits in percent encoding. Fixes #2281

This commit is contained in:
nnposter
2021-05-17 21:31:32 +00:00
parent 169dc44b73
commit 67a04de96a
2 changed files with 5 additions and 1 deletions

View File

@@ -71,6 +71,10 @@ o [Ncat][GH#2167][GH#2168] Ncat is now again generating certificates
with the duration of one year. Due to a bug, recent versions of Ncat were with the duration of one year. Due to a bug, recent versions of Ncat were
using only one minute. [Tobias Girstmair] using only one minute. [Tobias Girstmair]
o [NSE][GH#2281] URL/percent-encoding is now using uppercase hex digits
to align with RFC 3986, section 2.1, and to improve compatibility with some
real-world web servers. [nnposter]
o [NSE][GH#2174] Script hostmap-crtsh got improved in several ways. The most o [NSE][GH#2174] Script hostmap-crtsh got improved in several ways. The most
visible are that certificate SANs are properly split apart and that visible are that certificate SANs are properly split apart and that
identities that are syntactically incorrect to be hostnames are now ignored. identities that are syntactically incorrect to be hostnames are now ignored.

View File

@@ -58,7 +58,7 @@ local function make_set(t)
end end
local function hex_esc (c) local function hex_esc (c)
return string.format("%%%02x", string.byte(c)) return string.format("%%%02X", string.byte(c))
end end
-- these are allowed within a path segment, along with alphanum -- these are allowed within a path segment, along with alphanum