--- parser3/src/include/pa_request.h 2010/09/24 08:18:57 1.207 +++ parser3/src/include/pa_request.h 2013/07/23 14:29:02 1.211 @@ -1,14 +1,14 @@ /** @file Parser: request class decl. - Copyright (c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_REQUEST_H #define PA_REQUEST_H -static const char * const IDENT_REQUEST_H="$Date: 2010/09/24 08:18:57 $"; +#define IDENT_PA_REQUEST_H "$Id: pa_request.h,v 1.211 2013/07/23 14:29:02 moko Exp $" #include "pa_pool.h" #include "pa_hash.h" @@ -20,10 +20,6 @@ static const char * const IDENT_REQUEST_ #include "pa_sapi.h" #include "pa_vconsole.h" -#ifdef RESOURCES_DEBUG -#include -#endif - // consts const uint ANTI_ENDLESS_EXECUTE_RECOURSION=1000; @@ -186,8 +182,7 @@ public: #endif Request(SAPI_Info& asapi_info, Request_info& arequest_info, - String::Language adefault_lang, ///< all tainted data default untainting lang - bool status_allowed ///< status class allowed + String::Language adefault_lang ///< all tainted data default untainting lang ); ~Request(); @@ -320,6 +315,9 @@ public: /// returns an absolute @a path to relative @a name const String& absolute(const String& relative_name); + /// returns the mime type of 'user_file_name' + const String& mime_type_of(const String* file_name); + /// returns the mime type of 'user_file_name_cstr' const String& mime_type_of(const char* user_file_name_cstr);