From 5a32f584d452efdce23d5ebbf80b958d01b51a94 Mon Sep 17 00:00:00 2001 From: jah Date: Thu, 24 Mar 2011 12:49:00 +0000 Subject: [PATCH] Modified regex used to parse the 'last modified' line of whois assignments files to allow for the absence of the etag on that line. --- scripts/whois.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/whois.nse b/scripts/whois.nse index 1e5e8fc0b..5bed15889 100644 --- a/scripts/whois.nse +++ b/scripts/whois.nse @@ -1905,7 +1905,7 @@ function requires_updating( file ) f:close() if not stamp then return true, nil end - last_cached, mod, etag = stamp:match( "<([^>]*)><([^>]*)><([^>]*)>" ) + last_cached, mod, etag = stamp:match( "^<([^>]*)><([^>]*)>]*)>?$" ) if not ( last_cached or mod or etag ) then return true, nil end