瀏覽代碼

vm-file-editor: hide | in filename

Vincent Penquerc'h 10 年之前
父節點
當前提交
214365e272
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      qubes-rpc/vm-file-editor.c

+ 1 - 1
qubes-rpc/vm-file-editor.c

@@ -35,7 +35,7 @@ char *get_filename()
 	}
 	for (i=0; buf[i]!=0; i++) {
 		// replace some characters with _ (eg mimeopen have problems with some of them)
-		if (index(" !?\"#$%^&*()[]<>;`~", buf[i]))
+		if (index(" !?\"#$%^&*()[]<>;`~|", buf[i]))
 			buf[i]='_';
 	}
 	snprintf(retname, sizeof(retname), "/tmp/%s", buf);