Re: [Mod-security-developers] ModSecurity 2.6.7: PCRE version check
Brought to you by:
victorhora,
zimmerletw
From: Peter H. <hei...@we...> - 2012-08-02 21:08:56
|
Breno Silva wrote: > Can you send me your warning message ? > > We applied it to avoid version mismatch like 8.2 == 8.02 Example warning (5.0 compiled in and loaded): [notice] ModSecurity: PCRE compiled version="5.00"; loaded version="5.0 13-Sep-2004" [warn] ModSecurity: Loaded PCRE do not match with compiled! pcre_version() is implemented as XSTRING(PCRE_MAJOR.PCRE_MINOR PCRE_DATE) I propose to use in ModSecurity: pcre_vrs = apr_psprintf(mp,"%d.%d ", PCRE_MAJOR, PCRE_MINOR); (note the space, which prevents that "8.2 " and "8.20" are considered equal). -- Peter Heimann |