"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "apache2/msc_json.c" between
modsecurity-2.9.6.tar.gz and modsecurity-2.9.7.tar.gz

About: ModSecurity is an intrusion detection and prevention module (web application firewall) for the Apache (and Nginx) Web servers.

msc_json.c  (modsecurity-2.9.6):msc_json.c  (modsecurity-2.9.7)
/* /*
* ModSecurity for Apache 2.x, http://www.modsecurity.org/ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/) * Copyright (c) 2004-2022 Trustwave Holdings, Inc. (http://www.trustwave.com/)
* *
* You may not use this file except in compliance with * You may not use this file except in compliance with
* the License.  You may obtain a copy of the License at * the License.  You may obtain a copy of the License at
* *
*     http://www.apache.org/licenses/LICENSE-2.0 *     http://www.apache.org/licenses/LICENSE-2.0
* *
* If any of the files related to licensing are missing or if you have any * If any of the files related to licensing are missing or if you have any
* other questions related to licensing please contact Trustwave Holdings, Inc. * other questions related to licensing please contact Trustwave Holdings, Inc.
* directly using the email address security@modsecurity.org. * directly using the email address security@modsecurity.org.
*/ */
skipping to change at line 60 skipping to change at line 60
arg->value = apr_pstrmemdup(msr->mp, value, length); arg->value = apr_pstrmemdup(msr->mp, value, length);
arg->value_len = length; arg->value_len = length;
arg->value_origin_len = length; arg->value_origin_len = length;
arg->value_origin_offset = value-base_offset; arg->value_origin_offset = value-base_offset;
arg->origin = "JSON"; arg->origin = "JSON";
if (msr->txcfg->debuglog_level >= 9) { if (msr->txcfg->debuglog_level >= 9) {
msr_log(msr, 9, "Adding JSON argument '%s' with value '%s'", msr_log(msr, 9, "Adding JSON argument '%s' with value '%s'",
arg->name, arg->value); arg->name, arg->value);
} }
if (apr_table_elts(msr->arguments)->nelts >= msr->txcfg->arguments_limit) {
if (msr->txcfg->debuglog_level >= 4) {
msr_log(msr, 4, "Skipping request argument, over limit (%s): name \"
%s\", value \"%s\"",
arg->origin, log_escape_ex(msr->mp, arg->name, arg->name_len
),
log_escape_ex(msr->mp, arg->value, arg->value_len));
}
msr->msc_reqbody_error = 1;
return 0;
}
apr_table_addn(msr->arguments, apr_table_addn(msr->arguments,
log_escape_nq_ex(msr->mp, arg->name, arg->name_len), (void *) arg); log_escape_nq_ex(msr->mp, arg->name, arg->name_len), (void *) arg);
return 1; return 1;
} }
/** /**
* yajl callback functions * yajl callback functions
* For more information on the function signatures and order, check * For more information on the function signatures and order, check
 End of changes. 2 change blocks. 
1 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)