mirror of
https://github.com/apache/httpd.git
synced 2025-08-15 23:27:39 +00:00
Improve handling of maxlen = APR_SIZE_MAX, noticed by Jim.
Use apr_pregsub_ex() and maxlen = 0 for unlimited in mod_substitute. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1189985 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -135,7 +135,7 @@ AP_DECLARE(char *) ap_varbuf_pdup(apr_pool_t *p, struct ap_varbuf *vb,
|
||||
* @param source The string that was originally matched to the regex
|
||||
* @param nmatch the nmatch returned from ap_pregex
|
||||
* @param pmatch the pmatch array returned from ap_pregex
|
||||
* @param maxlen the maximum string length to append to vb
|
||||
* @param maxlen the maximum string length to append to vb, 0 for unlimited
|
||||
* @return APR_SUCCESS if successful
|
||||
* @note Just like ap_pregsub(), this function does not copy the part of
|
||||
* *source before the matching part (i.e. the first pmatch[0].rm_so
|
||||
|
Reference in New Issue
Block a user