[Tile-serving] [mod_tile] Can't use semicolons (and therefore html entities) in per-style attribution (#33)

Andy Allan notifications at github.com
Thu Jun 20 17:25:52 UTC 2013


The default attribution can be interpreted as html, e.g. when shown in tilejson output

https://github.com/openstreetmap/mod_tile/blob/master/mod_tile.h#L32

It can be overwritten per-style in renderd.conf

https://github.com/openstreetmap/mod_tile/blob/master/renderd.conf#L38

However, this doesn't work if you have any semicolons in your override string, e.g. for ampersands, copyright entities or similar. The role of semicolons in .ini files seems to be implementation-specific as to whether they are a comment delineator only at the start of the line, only when preceded by whitespace, or at any point during the line. Additionally, escape sequences (typically backslash, e.g. \; ) are implementation-specific. At the moment, we have an anywhere-no-escape parser.

Perhaps we need a different ini parser, or a different configuration file format.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/33
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20130620/3bde66a2/attachment.html>


More information about the Tile-serving mailing list