From 95a05880fa4501233845f38cc5e28a78a76b3c80 Mon Sep 17 00:00:00 2001 From: pauldubois Date: Sun, 2 Mar 2008 10:54:16 +0000 Subject: bug 1895003; add ';' to shell_safe git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3502 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libutil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/libutil.cc') diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc index 9b492329cd..c5751a27eb 100644 --- a/crawl-ref/source/libutil.cc +++ b/crawl-ref/source/libutil.cc @@ -114,7 +114,7 @@ std::string apply_description(description_level_type desc, // the shell can do damage with. bool shell_safe(const char *file) { - int match = strcspn(file, "\\`$*?|><&\n!"); + int match = strcspn(file, "\\`$*?|><&\n!;"); return !(match >= 0 && file[match]); } -- cgit v1.2.3-54-g00ecf