Roxen.git / server / modules / filesystems / filesystem.pike

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:455:    default:    return Charset.decoder(path_encoding)->feed(p)->drain();    }   #endif /* !__NT__ */   }      string real_path(string f, RequestID id)   {    f = normalized_path + encode_path(f);    if (FILTER_INTERNAL_FILE(f, id)) return 0; + #ifdef __NT__ +  // These characters are apparently invalid in NTFS filenames. +  if (f != replace(f, "*?|"/"", ({ "", "", "" }))) { +  return 0; +  } + #endif    catch {    f = NORMALIZE_PATH(f);    if (has_prefix(f, normalized_path) ||   #ifdef __NT__    (f+"\\" == normalized_path)   #else /* !__NT__ */    (f+"/" == normalized_path)   #endif /* __NT__ */    ) {    return f;