1
0
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:
fyodor
2007-08-11 04:58:05 +00:00
parent 69763672e0
commit 475393bc2c
7 changed files with 389 additions and 93 deletions

View File

@@ -315,6 +315,10 @@ function parse_query(query)
local parsed = {}
local pos = 0
query = string.gsub(query, "&", "&")
query = string.gsub(query, "&lt;", "<")
query = string.gsub(query, "&gt;", ">")
function ginsert(qstr)
local first, last = string.find(qstr, "=")
if first then