mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-30 03:26:23 -04:00
mime: Check whether % is enclosed by apostrophes
This commit is contained in:
parent
8b900203b7
commit
6a77f68c63
@ -810,7 +810,12 @@ subst_file(unsigned char *prog, unsigned char *file)
|
||||
cygwin_conv_to_full_win32_path(file, new_path);
|
||||
add_to_string(&name, new_path);
|
||||
#else
|
||||
add_shell_quoted_to_string(&name, file, strlen(file));
|
||||
|
||||
if (p && (prog[-1] == '\'') && (prog[1] == '\'')) {
|
||||
add_to_string(&name, file);
|
||||
} else {
|
||||
add_shell_quoted_to_string(&name, file, strlen(file));
|
||||
}
|
||||
#endif
|
||||
prog++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user