forked from enlightenment/enlightenment
parent
db4a8f8ba4
commit
d904f1eb5c
|
@ -592,15 +592,24 @@ e_util_filename_escape(const char *filename)
|
|||
while (*p)
|
||||
{
|
||||
if ((q - buf) > 4090) return NULL;
|
||||
if (
|
||||
if (*p == '\'')
|
||||
{
|
||||
*q= '\'';
|
||||
q++;
|
||||
*q = '\\';
|
||||
q++;
|
||||
*q= '\'';
|
||||
q++;
|
||||
}
|
||||
else if (
|
||||
(*p == ' ') || (*p == '\t') || (*p == '\n') ||
|
||||
(*p == '\\') || (*p == '\'') || (*p == '\"') ||
|
||||
(*p == '\\') || (*p == '\"') || (*p == '\?') ||
|
||||
(*p == ';') || (*p == '!') || (*p == '#') ||
|
||||
(*p == '$') || (*p == '%') || (*p == '&') ||
|
||||
(*p == '*') || (*p == '(') || (*p == ')') ||
|
||||
(*p == '[') || (*p == ']') || (*p == '{') ||
|
||||
(*p == '}') || (*p == '|') || (*p == '<') ||
|
||||
(*p == '>') || (*p == '?')
|
||||
(*p == '>')
|
||||
)
|
||||
{
|
||||
*q = '\\';
|
||||
|
|
Loading…
Reference in New Issue