W3C home > Mailing lists > Public > public-web-security@w3.org > March 2010

My RegExp is still leaking

From: gaz Heyes <gazheyes@gmail.com>
Date: Thu, 4 Mar 2010 11:17:07 +0000
Message-ID: <252dd75b1003040317i32f1abd9s29c255190567ba7a@mail.gmail.com>
To: "public-web-security@w3.org" <public-web-security@w3.org>
Hi all

Thought you guys might be interested in this:-
<http://www.thespanner.co.uk/2010/03/04/my-regexp-is-still-leaking/>

To summarise:-

a=/a/;
a.test('a');
a.lastMatch;// This doesn't work but should
//RegExp.lastMatch this does work but shouldn't


And browsers should drop regular expressions being called as a function you
crazy people

Cheers

Gareth
Received on Thursday, 4 March 2010 11:17:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 19 December 2010 00:16:02 GMT