From 785c832d6a797103cf872b5ea6562e8dc59f24be Mon Sep 17 00:00:00 2001 From: lukeflo Date: Sun, 6 Jul 2025 12:36:53 +0200 Subject: add forbidden chars to README --- src/app.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/app.rs b/src/app.rs index 708ec37..8b76f17 100644 --- a/src/app.rs +++ b/src/app.rs @@ -435,11 +435,16 @@ impl App { .unwrap()] .citekey .clone(); + // disallow chars which can cause other shell executions if citekey.contains("/") | citekey.contains("|") | citekey.contains("#") | citekey.contains("\\") | citekey.contains("*") + | citekey.contains("\"") + | citekey.contains(";") + | citekey.contains("!") + | citekey.contains("\'") { self.bibiman.open_popup( PopupKind::MessageError, -- cgit v1.2.3