lua-users home
lua-l archive

Re: unescape lua string (opposite of %q)

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


Erik Lindroos wrote:
 The above function is not fully correct but it is 100% secure. No
 input can cause the execution of 'str' itself.
Except of course something like:
print(reverse_q("\\\\\" .. (1+1) -- \\"))
Oops. I stand corrected. Time to fix some of my own code. Thanks.
--
Shmuel

AltStyle によって変換されたページ (->オリジナル) /