loadstring is disallowed in the sandbox and that is unlikely to change.

There are other ways of decoding it but before we go there what is your use
case for creating a string suitable to load into the Lua interpreter? BTW:
raw strings will work properly in a Heka message as-is.

On Fri, Feb 13, 2015 at 2:46 AM, Djamel F. <djamel...@gmail.com> wrote:

> Hi,
>
> I'm working on a lua sandbox encoder & decoder to dump or load a raw
> string.
> So I'm using string.format("%q", "<my string to escape>") to escape any
> special chars in the encoding process.
> And now I want to do is the opposite in the decoder, I mean unescape the
> string.
> So I tried to use the "loadstring" function but it seems heka's lua
> sandbox don't know this function.
>
> Do you know if the "loadstring" lua function is supported? Any other idea
> to unescape a string without using the "loadstring" function?
> Thanks.
>
> _______________________________________________
> Heka mailing list
> Heka@mozilla.org
> https://mail.mozilla.org/listinfo/heka
>
>
_______________________________________________
Heka mailing list
Heka@mozilla.org
https://mail.mozilla.org/listinfo/heka

Reply via email to