[openstreetmap/openstreetmap-website] Leading and trailing spaces in traces tags (Issue #3596)

Anton Khorev notifications at github.com
Fri Jul 15 02:54:28 UTC 2022


### URL

https://www.openstreetmap.org/traces/new

### How to reproduce the issue?

Is it supposed to be possible to have leading and trailing whitespace in tags? I suspect that not because the tag string is split by this regexp: `/\s*,\s*/`. It will strip leading/trailing spaces from everything in the middle but not leading spaces from the first tag and trailing spaces from the last one.

1. go to *upload gps trace* page
2. set tag input to something like <pre>               1,2,3                  </pre>
3. set everything else to valid values and upload a file
4. after successful upload see what the tag links look like

Example:
https://master.apis.dev.openstreetmap.org/user/ankhtest1/traces/2041

### Screenshot(s) or anything else?

_No response_

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3596
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/3596 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220714/6761a9e0/attachment.htm>


More information about the rails-dev mailing list