[OSM-dev] Semicolon
Tom Hughes
tom at compton.nu
Tue Nov 13 14:00:11 GMT 2007
In message <a4c775140711130535n512c9cbat432d47f7aeb27597 at mail.gmail.com>
Dave Stubbs <osm.list at randomjunk.co.uk> wrote:
> Patch attached.
Thanks.
> What it does:
> - escapes all ';' with '\s'
> - escapes all '=' with '\e'
> - escapes all '\' with '\\'
> - unescapes for requests
> - works for API and Potlatch
I can't say I'm a great fan of that escaping scheme, but I'll have
a think and see if I can come up with anything better.
> So basically anything that doesn't use the API (either node interface,
> or amf interface) will fail to properly escape or unescape the ; and
> =.
Do we have any idea what the performance impact on the map API call
is? That's an awful lot of (slow) ruby string manipulation that we're
adding to it...
> The patch also fixes a bug in the amf controller's handling of
> escaping text for the sql (you have to triple escape '\' passed as a
> replacement string to gsub as it interprets \1 \2 etc in the string,
> or just use a block)
Interesting... What's with all that weird 92.char stuff anyway... Any
comments Richard?
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
More information about the dev
mailing list