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

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:519:    default:    return Charset.decoder(path_encoding)->feed(p)->drain();    }   #endif /* !__NT__ */   }      protected string low_real_path(string f, RequestID id)   {    string norm_f;    + #ifdef __NT__ +  // These characters are apparently invalid in NTFS filenames. +  if (f != replace(f, "*?|"/"", ({ "", "", "" }))) { +  return 0; +  } + #endif    if (mixed err = catch {    /* NOTE: NORMALIZE_PATH() may throw errors. */    norm_f = NORMALIZE_PATH(path + encode_path(f));   #if constant(System.normalize_path)    if (!has_prefix(norm_f, normalized_path) &&   #ifdef __NT__    (norm_f+"\\" != normalized_path)   #else /* !__NT__ */    (norm_f+"/" != normalized_path)   #endif /* __NT__ */