--- parser3/src/include/pa_request.h 2026/09/26 19:06:55 1.277 +++ parser3/src/include/pa_request.h 2026/10/01 12:46:17 1.281 @@ -8,10 +8,11 @@ #ifndef PA_REQUEST_H #define PA_REQUEST_H -#define IDENT_PA_REQUEST_H "$Id: pa_request.h,v 1.277 2026/09/26 19:06:55 moko Exp $" +#define IDENT_PA_REQUEST_H "$Id: pa_request.h,v 1.281 2026/10/01 12:46:17 moko Exp $" #include "pa_pool.h" #include "pa_hash.h" +#include "pa_file.h" #include "pa_wcontext.h" #include "pa_value.h" #include "pa_vhash.h" @@ -302,7 +303,10 @@ public: /// returns relative to @a path path to @a file const String& relative(const char* apath, const String& relative_name); - const String& full_disk_path(const String& relative_name); + /// '/'-normalized disk path of a file name; a uri of another scheme is returned as is if allowed, otherwise throws + const String& full_disk_path(const String& relative_name, uint allowed=0); + /// '/'-normalized full_disk_path of a real file on disk, which does not throw: 0 for a uri or a remote, invalid or tainted file:// one + const String* real_disk_path(const String& name); /// returns the mime type of 'user_file_name' const String& mime_type_of(const String* file_name);