Hi guys!

The regexp in the ajax grep plugin sucks. It infiniloops on a current site
I'm assessing. So I took the liberty of cleaning it up a bit. The new code
does what I suspect the old one was trying to do, but isn't a complete and
utter disaster performance wise. ;)

I replaced these lines:

regex_string = '< *?script.*?>.*?'
...
regex_string += '.*?</ *?script *?>'

with this:

regex_string = '<\W*script[^>]*>.*'
...
regex_string += '.*</\W*script[^>]*>'


Andres, could you please reveiew and check in this change?

Cheers,

/olle

------------------------------------------------------------------------------
_______________________________________________
W3af-develop mailing list
W3af-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/w3af-develop

Reply via email to