vm/file-editor: update masked characters (#406)
Do not blacklist eg dot.
This commit is contained in:
parent
b5fff2564f
commit
86d7ba1120
@ -21,7 +21,7 @@ char *get_filename()
|
|||||||
}
|
}
|
||||||
for (i=0; i < DVM_FILENAME_SIZE && buf[i]!=0; i++) {
|
for (i=0; i < DVM_FILENAME_SIZE && buf[i]!=0; i++) {
|
||||||
// replace some characters with _ (eg mimeopen have problems with some of them)
|
// 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]='_';
|
buf[i]='_';
|
||||||
}
|
}
|
||||||
snprintf(retname, sizeof(retname), "/tmp/%s", buf);
|
snprintf(retname, sizeof(retname), "/tmp/%s", buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user