Re: [Mod-security-developers] ModSecurity 2.6.7: PCRE version check
Brought to you by:
victorhora,
zimmerletw
From: Breno S. <bre...@gm...> - 2012-08-02 23:10:03
|
Let me check in the lib pcre history if 8.2 means (two) or twenty :) On Thu, Aug 2, 2012 at 6:04 PM, Breno Silva <bre...@gm...> wrote: > I reverted it. > > Are you sure your idea will prevents 8.2 and 8.02 are considered equal ? > > Thanks > > Breno > > > On Thu, Aug 2, 2012 at 4:08 PM, Peter Heimann <hei...@we...> wrote: > >> >> 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 >> > > |