You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* On Linux, TinyFD "allows shell metacharacters in titles, messages, and other input data," meaning that it is vulnerable to command injection.
99
+
* **Treat all user input as untrusted and sanitize it before passing it to TinyFD.**
85
100
*
86
101
* @param message the message. may contain \n and \t
87
102
* @param dialog the type of message box to show. <br>One of: {@link #OK_DIALOG}, {@link #OK_CANCEL_DIALOG}, {@link #YES_NO_DIALOG}, {@link #YES_NO_CANCEL_DIALOG}
@@ -93,6 +108,9 @@ public interface TinyFdApi {
93
108
94
109
/**
95
110
* Shows a notification.
111
+
* <p>
112
+
* On Linux, TinyFD "allows shell metacharacters in titles, messages, and other input data," meaning that it is vulnerable to command injection.
113
+
* **Treat all user input as untrusted and sanitize it before passing it to TinyFD.**
96
114
*
97
115
* @param icon the icon to use. One of: {@link #QUESTION_ICON}, {@link #ERROR_ICON}, {@link #WARNING_ICON}, {@link #INFO_ICON}
98
116
* @return 0 if the user clicked the "ok" button, 1 for "cancel"
0 commit comments