nbs-system / naxsi

NAXSI is an open-source, high performance, low rules maintenance WAF for NGINX
GNU General Public License v3.0
4.8k stars 606 forks source link

PCRE2 problems #600

Closed eilandert closed 2 years ago

eilandert commented 2 years ago

Referring to https://github.com/nbs-system/naxsi/issues/593

temporarily workaround:

git clone https://github.com/nbs-system/naxsi.git cd naxsi git reset --hard 304e66d86fc4771821585b1bc32169de8afc9cea wget https://patch-diff.githubusercontent.com/raw/nbs-system/naxsi/pull/598.patch patch -p1 < 598.patch (1 hunk fails but that's no problem, it tries to replace a line with the same line)

And start building nginx with --with-pcre --without-pcre2

Basicly, clone this repo, go back to before the PCRE2 PR (it prevents building as pcre), apply the patch for the new 1.23.0 api and build NGINX with PCRE instead of PCRE2

tester: @tim-snapt

wargio commented 2 years ago

the issue is that this is not a patch, is a workaround.

wargio commented 2 years ago

closing since this issue has been fixed here: https://github.com/wargio/naxsi/commit/9e06c5f53b2e393e40e9df7746a7b8bc4c2abfa4