mirror of
https://github.com/nmap/nmap.git
synced 2026-01-01 12:29:03 +00:00
merge soc07 r5049:5063 - added string split/join methods; Bruteforce telnet script; fixed a few typos; updated to escape some common url constructs; refactored shorport library; Added a family of string buffer functions to nselib as concatenation is not efficient; Updated a couple of scripts to use string buffers; resolved a couple of naming conflicts
This commit is contained in:
@@ -315,6 +315,10 @@ function parse_query(query)
|
||||
local parsed = {}
|
||||
local pos = 0
|
||||
|
||||
query = string.gsub(query, "&", "&")
|
||||
query = string.gsub(query, "<", "<")
|
||||
query = string.gsub(query, ">", ">")
|
||||
|
||||
function ginsert(qstr)
|
||||
local first, last = string.find(qstr, "=")
|
||||
if first then
|
||||
|
||||
Reference in New Issue
Block a user