lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.