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

Error creating Whitelist rule with pipe "|" #372

Closed buliverd53 closed 7 years ago

buliverd53 commented 7 years ago

Hey guys, i'm trying to create an rule of the follow URI

/{{event.backgroundUrl%20|%20imageUrl}}

But i got error, here's the rule that i've tried to use:

BasicRule wl:15 "mz:$URL_X:ˆ([ A-Za-z0-9_@./%#&%{}+-]*)([|])([ A-Za-z0-9_@./#%{}&+-]*)?|URL";
buixor commented 7 years ago

Hello,

Yes, this is the price of a poor design decision, we hope to add a workaround in next version, but so far, you are stuck, sorry :(

buixor commented 7 years ago

see #271