check_sane_path(const char *path)
{
   const char *forbidden_ch = "`~!#$%^&*()[]{}|\\;'\"<>?";
   const char *p;

   if (strstr(path, "..")) return EINA_FALSE; // just don't allow .. anywhere
   for (p = forbidden_ch; *p; p++) // no invalid chars like above
     {
        if (strchr(path, *p)) return EINA_FALSE;
     }
   for (p = path; *p; p++) // nothing in lower ascii ctrl chars or high ascii
     {
        if ((*p <= ' ') || (*p >= 0x7f)) return EINA_FALSE;
     }
   return EINA_TRUE;
}
check_sane_path(const char *path)
{
   const char *forbidden_ch = "`~!#$%^&*()[]{}|\\;'\"<>?";
   const char *p;

   if (strstr(path, "..")) return EINA_FALSE;  
   for (p = forbidden_ch; *p; p++)  
     {
        if (strchr(path, *p)) return EINA_FALSE;
     }
   for (p = path; *p; p++)  
     {
        if ((*p <= ' ') || (*p >= 0x7f)) return EINA_FALSE;
     }
   return EINA_TRUE;
}