kiselev-nikolay / direct-to-me

Self-hosted application for redirecting user or application data in the background
https://direct-to-me.com/
4 stars 1 forks source link

Validate template before save #9

Closed kiselev-nikolay closed 3 years ago

kiselev-nikolay commented 3 years ago

Its about

https://github.com/kiselev-nikolay/direct-to-me/blob/4833bfdb6ae589cd8cda92fe94dabba3e13f32a7/pkg/api/handlers/storage.go#L22

The problem is that a user can submit an invalid template to the database using the control panel. But the problem is only detected when another user tries to use the redirect.

kiselev-nikolay commented 3 years ago

image See issue #8