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

Spaces in the text attribute throw #124

Closed
steveoh opened this issue Jun 2, 2023 · 2 comments · Fixed by #127 or #130
Closed

Spaces in the text attribute throw #124

steveoh opened this issue Jun 2, 2023 · 2 comments · Fixed by #127 or #130
Assignees

Comments

@steveoh
Copy link
Member

steveoh commented Jun 2, 2023

postgres thinks this is a string search and the quote is unterminated. I wonder if all quotes should be stripped. Double quotes would be considered a column etc so I don't think anything good will come from it.

e.g. /suggest?f=json&text=3000 N MAIN ST, LOGAN'&maxSuggestions=6

@stdavis stdavis self-assigned this Jun 5, 2023
@stdavis
Copy link
Member

stdavis commented Jun 5, 2023

What about for geocoding? Should I strip them for requests going to the web API as well?

@steveoh
Copy link
Member Author

steveoh commented Jun 5, 2023

there are 0 roads and 453 address points with a single quote. I think you could strip it

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 a pull request may close this issue.

2 participants