mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Renamed SecGeoLookupsDb to SecGeoLookupDB.
This commit is contained in:
parent
6ca5b831fb
commit
1860e2a35e
2
CHANGES
2
CHANGES
@ -2,6 +2,8 @@
|
|||||||
26 Nov 2007 - 2.5.0-dev3
|
26 Nov 2007 - 2.5.0-dev3
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
* Renamed SecGeoLookupsDb to SecGeoLookupDB.
|
||||||
|
|
||||||
* Implement SecComponentSignature.
|
* Implement SecComponentSignature.
|
||||||
|
|
||||||
* Fix warnings on Solaris and/or 64bit builds.
|
* Fix warnings on Solaris and/or 64bit builds.
|
||||||
|
@ -1273,7 +1273,7 @@ static const char *cmd_pdf_protect_method(cmd_parms *cmd, void *_dcfg,
|
|||||||
|
|
||||||
/* -- Geo Lookup configuration -- */
|
/* -- Geo Lookup configuration -- */
|
||||||
|
|
||||||
static const char *cmd_geo_lookups_db(cmd_parms *cmd, void *_dcfg,
|
static const char *cmd_geo_lookup_db(cmd_parms *cmd, void *_dcfg,
|
||||||
const char *p1)
|
const char *p1)
|
||||||
{
|
{
|
||||||
char *error_msg;
|
char *error_msg;
|
||||||
@ -1520,8 +1520,8 @@ const command_rec module_directives[] = {
|
|||||||
),
|
),
|
||||||
|
|
||||||
AP_INIT_TAKE1 (
|
AP_INIT_TAKE1 (
|
||||||
"SecGeoLookupsDb",
|
"SecGeoLookupDB",
|
||||||
cmd_geo_lookups_db,
|
cmd_geo_lookup_db,
|
||||||
NULL,
|
NULL,
|
||||||
RSRC_CONF,
|
RSRC_CONF,
|
||||||
"database for geographical lookups module."
|
"database for geographical lookups module."
|
||||||
|
@ -931,7 +931,7 @@ static int msre_op_geoLookup_execute(modsec_rec *msr, msre_rule *rule, msre_var
|
|||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (geo == NULL) {
|
if (geo == NULL) {
|
||||||
msr_log(msr, 1, "Geo lookup for \"%s\" attempted without a database. Set SecGeoLookupDb.", geo_host);
|
msr_log(msr, 1, "Geo lookup for \"%s\" attempted without a database. Set SecGeoLookupDB.", geo_host);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1097,16 +1097,16 @@ SecAuditLogStorageDir logs/audit
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<title><literal>SecGeoLookupsDb</literal></title>
|
<title><literal>SecGeoLookupDb</literal></title>
|
||||||
|
|
||||||
<para><emphasis>Description:</emphasis> Defines the path to the
|
<para><emphasis>Description:</emphasis> Defines the path to the
|
||||||
geograpical database file.</para>
|
geograpical database file.</para>
|
||||||
|
|
||||||
<para><emphasis>Syntax:</emphasis> <literal
|
<para><emphasis>Syntax:</emphasis> <literal
|
||||||
moreinfo="none">SecGeoLookupsDb /path/to/db</literal></para>
|
moreinfo="none">SecGeoLookupDb /path/to/db</literal></para>
|
||||||
|
|
||||||
<para><emphasis>Example Usage:</emphasis> <literal
|
<para><emphasis>Example Usage:</emphasis> <literal
|
||||||
moreinfo="none">SecGeoLookupsDb
|
moreinfo="none">SecGeoLookupDb
|
||||||
/usr/local/geo/data/GeoLiteCity.dat</literal></para>
|
/usr/local/geo/data/GeoLiteCity.dat</literal></para>
|
||||||
|
|
||||||
<para><emphasis>Processing Phase:</emphasis> N/A</para>
|
<para><emphasis>Processing Phase:</emphasis> N/A</para>
|
||||||
@ -4608,7 +4608,7 @@ SecRule ARGS:route "!<emphasis>@endsWith %{REQUEST_ADDR}</emphasis>" t:none,deny
|
|||||||
in the <literal moreinfo="none">GEO</literal> collection.</para>
|
in the <literal moreinfo="none">GEO</literal> collection.</para>
|
||||||
|
|
||||||
<para>You must provide a database via <literal
|
<para>You must provide a database via <literal
|
||||||
moreinfo="none">SecGeoLookupsDb</literal> before this operator can be
|
moreinfo="none">SecGeoLookupDb</literal> before this operator can be
|
||||||
used.</para>
|
used.</para>
|
||||||
|
|
||||||
<para>See the <literal moreinfo="none">GEO</literal> variable for an
|
<para>See the <literal moreinfo="none">GEO</literal> variable for an
|
||||||
@ -5038,4 +5038,4 @@ SecRule REQUEST_METHOD "!<emphasis>@within %{tx.allowed_methods}</emphasis>" t:l
|
|||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user