Roxen.git / server / protocols / ftp.pike

version» Context lines:

Roxen.git/server/protocols/ftp.pike:1767:    }    }    return(allowed_shells[shell]);    }    return 1;    }       private string fix_path(string s)    {    mixed err = catch { s = utf8_to_string(s); }; +  if (String.width(s) > 8) { +  // Wide, so it might contain combiners. +  // Combine them if they are there. +  s = Unicode.normalize(s, "NFC"); +  }    if (!sizeof(s)) {    if (cwd[-1] == '/') {    return(cwd);    } else {    return(cwd + "/");    }    } else if (s[0] == '~') {    return(combine_path("/", s));    } else if (s[0] == '/') {    return(simplify_path(s));