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

Backslash Error #16

Open
robertjcolley opened this issue May 6, 2020 · 3 comments
Open

Backslash Error #16

robertjcolley opened this issue May 6, 2020 · 3 comments

Comments

@robertjcolley
Copy link

image

I stumbled across an error which happens when the user enters in a '\' character. I would imagine that other URI special characters also can cause some issues in the same manner.

  • NOTE: I am using a custom input component and have not tried with the default input.
@robertjcolley
Copy link
Author

Also included in this discussion should be sanitization of search_term in the forwardGeocoding.

image

The two solutions I see are:

  1. (IMO the better option) sanitation of the search_term parameter and possibly relevant errors with invalid characters/input
  2. It is up to the user to handle sanitation.

@valentin-harrang
Copy link

Same error with accents..

@valentin-harrang
Copy link

@robertjcolley I fixed the problem to copy / paste and use this file directly in my project : https://github.com/groinder/react-mapbox-gl-geocoder/blob/master/src/index.js

I don't understand why it doesn't work using the lib

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

No branches or pull requests

2 participants