mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
parser: Updates the generated parser file
This commit is contained in:
parent
a719871458
commit
9c73c09abd
@ -1988,11 +1988,11 @@ namespace yy {
|
|||||||
case 71:
|
case 71:
|
||||||
#line 1082 "seclang-parser.yy" // lalr1.cc:856
|
#line 1082 "seclang-parser.yy" // lalr1.cc:856
|
||||||
{
|
{
|
||||||
#ifdef WITH_GEOIP
|
#if defined(WITH_GEOIP) or defined(WITH_MAXMIND)
|
||||||
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::GeoLookup());
|
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::GeoLookup());
|
||||||
#else
|
#else
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "This version of ModSecurity was not compiled with GeoIP support.";
|
ss << "This version of ModSecurity was not compiled with GeoIP or MaxMind support.";
|
||||||
driver.error(yystack_[1].location, ss.str());
|
driver.error(yystack_[1].location, ss.str());
|
||||||
YYERROR;
|
YYERROR;
|
||||||
#endif // WITH_GEOIP
|
#endif // WITH_GEOIP
|
||||||
@ -2669,7 +2669,7 @@ namespace yy {
|
|||||||
case 125:
|
case 125:
|
||||||
#line 1557 "seclang-parser.yy" // lalr1.cc:856
|
#line 1557 "seclang-parser.yy" // lalr1.cc:856
|
||||||
{
|
{
|
||||||
#ifdef WITH_GEOIP
|
#if defined(WITH_GEOIP) or defined(WITH_MAXMIND)
|
||||||
std::string err;
|
std::string err;
|
||||||
std::string file = modsecurity::utils::find_resource(yystack_[0].value.as< std::string > (),
|
std::string file = modsecurity::utils::find_resource(yystack_[0].value.as< std::string > (),
|
||||||
driver.ref.back(), &err);
|
driver.ref.back(), &err);
|
||||||
@ -2689,7 +2689,7 @@ namespace yy {
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "This version of ModSecurity was not compiled with GeoIP support.";
|
ss << "This version of ModSecurity was not compiled with GeoIP or MaxMind support.";
|
||||||
driver.error(yystack_[1].location, ss.str());
|
driver.error(yystack_[1].location, ss.str());
|
||||||
YYERROR;
|
YYERROR;
|
||||||
#endif // WITH_GEOIP
|
#endif // WITH_GEOIP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user