forked from enlightenment/efl
eina: correctly prepare path before sanitizing it.
This commit is contained in:
parent
046d806388
commit
a089818335
|
@ -70,6 +70,10 @@ _eina_file_escape(char *path, size_t len)
|
||||||
if (!result)
|
if (!result)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
EVIL_PATH_SEP_WIN32_TO_UNIX(path);
|
||||||
|
#endif
|
||||||
|
|
||||||
while ((p = strchr(p, '/')))
|
while ((p = strchr(p, '/')))
|
||||||
{
|
{
|
||||||
// remove double `/'
|
// remove double `/'
|
||||||
|
|
Loading…
Reference in New Issue