From e3b2fcd4154680a93bfb10062bc90ca376b7afab Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Thu, 4 Sep 2025 00:12:33 +0200 Subject: [PATCH] Sanitize input --- CLAUDE.md | 2 +- app/javascript/maps/location_search.js | 43 --------------- .../location_search/spatial_matcher.rb | 53 +++++++++++++------ 3 files changed, 39 insertions(+), 59 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index febda52c..b3333ff5 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -130,7 +130,7 @@ npx playwright test # E2E tests - **Framework**: rSwag (Swagger/OpenAPI) - **Location**: `/api-docs` endpoint -- **Authentication**: JWT-based for API access +- **Authentication**: API key (Bearer) for API access ## Database Schema diff --git a/app/javascript/maps/location_search.js b/app/javascript/maps/location_search.js index b3959bb5..4479dd93 100644 --- a/app/javascript/maps/location_search.js +++ b/app/javascript/maps/location_search.js @@ -83,12 +83,6 @@ class LocationSearch { class="flex-1 px-3 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm" id="location-search-input" /> -