From 86d7ba1120e284fc8d34e7987ea49b3f4fcf6bc7 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 14 Jan 2012 01:33:18 +0100 Subject: [PATCH] vm/file-editor: update masked characters (#406) Do not blacklist eg dot. --- qubes_rpc/vm-file-editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes_rpc/vm-file-editor.c b/qubes_rpc/vm-file-editor.c index 297d1ce..6cea77c 100644 --- a/qubes_rpc/vm-file-editor.c +++ b/qubes_rpc/vm-file-editor.c @@ -21,7 +21,7 @@ char *get_filename() } for (i=0; i < DVM_FILENAME_SIZE && buf[i]!=0; i++) { // replace some characters with _ (eg mimeopen have problems with some of them) - if ((buf[i] > 0x20 && buf[i] < 0x30) || index(";:<=>?`~", buf[i])) + if (index(" !?\"#$%^&*()[]<>;`~", buf[i])) buf[i]='_'; } snprintf(retname, sizeof(retname), "/tmp/%s", buf);