mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-24 20:40:35 -04:00
Shell-escape proper metachars before popening
This commit is contained in:
parent
6dba7aab41
commit
d4dfc17671
@ -84,7 +84,7 @@ FILE *server_side_convert_open(char *path, off_t offset, unsigned long len_ms) {
|
|||||||
char *cmd;
|
char *cmd;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
char *newpath;
|
char *newpath;
|
||||||
char *metachars = "\"();"; /* More?? */
|
char *metachars = "\"$`\\"; /* More?? */
|
||||||
char metacount = 0;
|
char metacount = 0;
|
||||||
char *src,*dst;
|
char *src,*dst;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user