Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whitelist kml layer name characters #85

Merged
merged 1 commit into from
Jun 2, 2017
Merged

Conversation

mapsam
Copy link
Member

@mapsam mapsam commented Jun 2, 2017

This updates the regex used to sanitize KML layer names to whitelist characters, rather than blacklist characters. This means that layer names will only include alphanumeric characters, _, -, and . - everything else is removed entirely.

cc @GretaCB for review

@GretaCB
Copy link
Contributor

GretaCB commented Jun 2, 2017

Great idea, removes a troublesome character chase.

@mapsam mapsam merged commit 59193e8 into master Jun 2, 2017
@mapsam mapsam deleted the whitelist-kml-layername branch June 2, 2017 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants