character as the first character in a 2/3 character pattern.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1610707 13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.5.0
- *) mod_log_config: Allow two character log formats to be registered and used.
- [Eric Covener]
+ *) mod_log_config: Allow three character log formats to be registered. For
+ backwards compatibility, the first character of a three-character format
+ must be the '^' (caret) character. [Eric Covener]
*) mod_ssl: Extend the scope of SSLSessionCacheTimeout to sessions
resumed by TLS session resumption (RFC 5077). [Rainer Jung]
break;
default:
- /* check for exactly two character format first */
- if (*(s+1)) {
- handler = (ap_log_handler *)apr_hash_get(log_hash, s, 2);
+ /* check for '^' + two character format first */
+ if (*s == '^' && *(s+1) && *(s+2)) {
+ handler = (ap_log_handler *)apr_hash_get(log_hash, s, 3);
if (handler) {
- s += 2;
+ s += 3;
}
}
if (!handler) {