tmoerman / sourire

A minimal web API rendering SMILES molecules
Eclipse Public License 1.0
19 stars 1 forks source link

Sanitize url parameter values #3

Closed tmoerman closed 9 years ago

tmoerman commented 9 years ago

It is possible to crash the renderer by supplying parameters without values e.g.: http://localhost:8000/molecule/CN1CCC%5BC%40H%5D1c2cccnc2?render-image-width=300&render-image-height

Sanitize them (i.e. no nil values) before passing through as Indigo options.

tmoerman commented 9 years ago

Fixed in https://github.com/tmoerman/sourire/commit/05422925ca9fb703911c08b32d6176115c2f9989