alvo's patch for efm - fix escaping.

SVN revision: 33926
This commit is contained in:
Carsten Haitzler 2008-03-05 04:00:17 +00:00
parent db4a8f8ba4
commit d904f1eb5c
1 changed files with 12 additions and 3 deletions

View File

@ -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 = '\\';