jperelli / osm-static-maps

Openstreetmap static maps is a nodejs lib, CLI and server open source inspired on google static map service
http://osm-static-maps.herokuapp.com/
GNU General Public License v2.0
160 stars 52 forks source link

Add parameter validation and refactor code #48

Closed devin-ai-integration[bot] closed 4 months ago

devin-ai-integration[bot] commented 4 months ago

Implemented parameter validation to ensure correct data types and protection against template injection vulnerabilities. Refactored code to reduce duplication and ensure that the validation function is called only once.