Kjetil Kjernsmo wrote:
and I'm pretty excited about finally get something
working after the pain I had with Cocoon, so I pretty happy with that! :-) Yiiiha!
Welcome to sanity :-)
But if there is an easy way to quote every string in the output of a DBI query (if that is indeed what's needed), I would be even more happy if somebody told me about it.I haven't looked into this, but you shouldn't need more than s/\\/\\\\/g and s/'/\\'/g, or something similar to properly protect your strings, provided they are enclosed in single quotes (which I think is preferable, because you wouldn't want content from your DB looking like a variable being interpolated).
Another option you might want to explore is using
$clean = Apache::AxKit::Language::XSP::makeSingleQuoted($string);
though I must say my memory is a bit dim (but testing it ought to be safe ;).
--
Robin Berjon <[EMAIL PROTECTED]>
Research Engineer, Expway
7FC0 6F5F D864 EFB8 08CE 8E74 58E6 D5DB 4889 2488
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
