[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [[ inside of a [[ .. ]]
- From: Matthew Wild <mwild1@...>
- Date: Sun, 5 Apr 2009 00:50:34 +0100
On Sun, Apr 5, 2009 at 12:07 AM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> > And by the way, is this way of concatenating 100% safe of any code
>> > injections? Can only "]]" end string beginning with "[["?
>> >
>>
>> There is no 100% safe way the way you are doing it
>
> Sure there is: find the largest sequence [===...===[ in the user code and
> wrap it with one more '='.
>
Yes, that's quite true. I mentally rule things like this out though,
being somewhat less efficient. The fact that Francio isn't doing it in
Lua however makes this the only candidate.