Page MenuHomeSoftware Heritage

Use proper parameter substitution.
ClosedPublic

Authored by vlorentz on Oct 4 2018, 11:10 AM.

Details

Summary

This avoids bugs/vulnerability with filenames containing a quote.

Diff Detail

Repository
rDSNIP Code snippets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz added inline comments.
morane/crossminer_launch.py
78

Note that the substitution is done inside this call, by psycopg itself, after parsing the query; instead of making the data directly in the code.

This revision is now accepted and ready to land.Oct 4 2018, 11:14 AM
This revision was automatically updated to reflect the committed changes.