diff options
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | src/app.rs | 5 |
2 files changed, 11 insertions, 0 deletions
@@ -440,6 +440,12 @@ directory is set to the value of the `note_path` variable. The extension can be choosen from one of the file format extension set in the `note_extensions` array. +**Be aware**: The operation of creating new notes is not permitted if the +citekey contains some special chars which could cause problems with Unixish +shell commands and file operations. Currently the following chars are not +allowed as part of the citekey: `/` | `|` | `#` | `*` | `\\` | `"` | `'` | `;` | +`!` + The bibfile itself will *not be edited*. Therefore, you can't break anything in your bibfile with this operation! @@ -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, |
