From ea388dc454ba52090e76eebf03afdb2c492cfa9c Mon Sep 17 00:00:00 2001 From: batrick Date: Sat, 25 Apr 2009 01:31:58 +0000 Subject: [PATCH] Corrected the bug reported here http://seclists.org/nmap-dev/2009/q2/0192.html by Michael Pattrick. --- nse_main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nse_main.cc b/nse_main.cc index be5595123..5cce8b0fa 100644 --- a/nse_main.cc +++ b/nse_main.cc @@ -333,7 +333,7 @@ int script_updatedb (void) " local categories = rawget(env, 'categories')\n" " assert(type(categories) == 'table', script.." " ' categories field is not a table')\n" - " local basename = assert(match(script, '([^\\/]-%.nse)$'))\n" + " local basename = assert(match(script, '[/\\]?([^/\\]-%.nse)$'))\n" " table.sort(categories)\n" " for j, category in ipairs(categories) do\n" " db:write('Entry { category = \"', lower(category),"