]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Check for backquote in check_for_invalid_chars() function
authorEric Bollengier <eric@baculasystems.com>
Fri, 9 Aug 2024 09:29:13 +0000 (11:29 +0200)
committerEric Bollengier <eric@baculasystems.com>
Wed, 4 Dec 2024 08:14:26 +0000 (09:14 +0100)
bacula/src/lib/edit.c

index d355c7579984877c33569c11a3bb5d3b98d7f2fb..b7ce258b0d363fad98f8ea8e02d4bc0f1e1e2351 100644 (file)
@@ -568,6 +568,9 @@ bool check_for_invalid_chars(const char *str, POOLMEM **err, bool *quote_needed)
          case '\'':
             pm_strcpy(err, "Found invalid \"\'\" character");
             return true;
+         case '`':
+            pm_strcpy(err, "Found invalid \"`\" character");
+            return true;
          case '$':
             pm_strcpy(err, "Found invalid \"$\" character");
             return true;