Skip to content

Commit

Permalink
Disclaimer for new TinyFD API
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Nov 21, 2023
1 parent 73c7712 commit 0f7b415
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/cc/polyfrost/oneconfig/renderer/TinyFD.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

import java.io.File;

/**
* API for TinyFD, a cross-platform file selection dialog.
* <p>
* On Linux, TinyFD "allows shell metacharacters in titles, messages, and other input data," meaning that it is vulnerable to command injection.
* **Treat all user input as untrusted and sanitize it before passing it to TinyFD.**
*/
@SuppressWarnings("unused")
public interface TinyFD {
String QUESTION_ICON = "question";
Expand Down

0 comments on commit 0f7b415

Please sign in to comment.