Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1069:      protected mixed strip_fork_information(RequestID id)   {    if (uname()->sysname == "Darwin") {    // Look for Mac OS X special filenames that are used access files in    // magic ways:    //    // foo.txt/..namedfork/data (same as foo.txt)    // foo.txt/..namedfork/rsrc (resource fork of foo.txt)    // foo.txt/rsrc (resource fork of foo.txt) -  // .DS_Store (Finder info file with catalog data) +     if (has_value(id->not_query, "..namedfork/") || -  has_suffix(id->not_query, "/rsrc") || -  has_value(lower_case(id->not_query), ".ds_store")) +  has_suffix(id->not_query, "/rsrc"))    // Skip elaborate error page since we get these e.g. for WebDAV    // mounts in OS X Finder.    return Roxen.http_status(404, "No such file.");    }       array a = id->not_query/"::";    // FIX: Must not subtract ":" chars since it breaks proper URL:s,    // e.g. "/internal-roxen-colorbar:x,y,z" and several others.    // id->not_query = a[0]-":";    id->not_query = a[0];