OWASP / threat-dragon

An open source threat modeling tool from OWASP
https://owasp.org/www-project-threat-dragon/
Apache License 2.0
902 stars 244 forks source link

PDF Report save as type field with wrong .pdf extension resulting in *..pdf for the wildcard #1023

Closed spdw closed 2 months ago

spdw commented 2 months ago

In the save dialog by default all existing pdf files shall be shown. Instead no pdf files are shown, because the PDF file extension is wrongly coded, see screenshot on Windows for the desktop application image Looks like in https://github.com/OWASP/threat-dragon/blob/2f06c93f7228a474fe80b344bbbf8232be801396/td.vue/src/desktop/menu.js#L347 the extension shall be 'pdf' and not '.pdf'.

jgadsden commented 2 months ago

Thanks @spdw for spotting this bug, do you want to go ahead and fix it or I can do it if you like?

spdw commented 2 months ago

If you could do it, it would be fine.