Added additional file info definitions introduced in APR 0.9.5 so that we will work with older APRs (IBM HTTP Server v6).

This commit is contained in:
b1v1r
2010-02-05 18:21:09 +00:00
parent 967741dbe3
commit fa483ce717
2 changed files with 11 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
28 Jan 2010 - 2.5.12 03 Feb 2010 - 2.5.12
-------------------- --------------------
* Added additional file info definitions introduced in APR 0.9.5 so that
build will work with older APRs (IBM HTTP Server v6).
* Added SecUploadFileLimit to limit the number of uploaded file parts that * Added SecUploadFileLimit to limit the number of uploaded file parts that
will be processed in a multipart POST. The default is 100. will be processed in a multipart POST. The default is 100.

View File

@@ -22,6 +22,13 @@
#include <sys/types.h> #include <sys/types.h>
#include <apr_file_info.h> #include <apr_file_info.h>
#ifndef APR_WSTICKY
/* Add extra flags added to APR in 0.9.5 */
#define APR_USETID 0x8000 /**< Set user id */
#define APR_GSETID 0x4000 /**< Set group id */
#define APR_WSTICKY 0x2000 /**< Sticky bit */
#endif
#include "modsecurity.h" #include "modsecurity.h"
int DSOLOCAL normalise_path_inplace(unsigned char *input, int len, int win, int *changed); int DSOLOCAL normalise_path_inplace(unsigned char *input, int len, int win, int *changed);