Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

check odt templates before opening/rendering them #4

Open
ghost opened this issue Jul 24, 2017 · 1 comment
Open

check odt templates before opening/rendering them #4

ghost opened this issue Jul 24, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 24, 2017

As of now, we take data from the database, save them temporarily to disk and open them with libreoffice.

Input data on the database is should not be trusted that much.

There should at least be a check that the data is a libreoffice file. I propose the use of python-magic, which checks for the type of data coming along.

Draft proposal, not ready yet.

@ghost
Copy link
Author

ghost commented Jul 25, 2017

I think it is working now, (see my branch) but due to unknown problems with my setup, I cannot test it directly myself.

@ghost ghost mentioned this issue Aug 2, 2017
toirl added a commit that referenced this issue Aug 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants