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 Validation to Options Parameters #49

Closed devin-ai-integration[bot] closed 3 weeks ago

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

Add Validation to Options Parameters to Prevent Handlebars Template Injection

Description

This pull request adds validation to the options parameters in the lib.js file to ensure they are parsed to the correct type and to prevent handlebars template injection. The following changes were made:

Changes

Validation Requirements

Testing

Manual review of the changes was conducted to ensure there are no syntax errors or obvious logical mistakes. However, there are no predefined test scripts in the project, and the README does not provide instructions for running tests. Further testing may be required to ensure the changes work as expected.

Link to Devin run

https://preview.devin.ai/devin/ec2cbae217a046bb8344e2e1d3998cbb