MCPcopy Create free account
hub / github.com/apache/httpd / log_table_entry

Function log_table_entry

server/log.c:836–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834
835
836static int log_table_entry(const apr_table_t *table, const char *name,
837 char *buf, int buflen)
838{
839#ifndef AP_UNSAFE_ERROR_LOG_UNESCAPED
840 const char *value;
841 char scratch[MAX_STRING_LEN];
842
843 if ((value = apr_table_get(table, name)) != NULL) {
844 ap_escape_errorlog_item(scratch, value, MAX_STRING_LEN);
845 return cpystrn(buf, scratch, buflen);
846 }
847
848 return 0;
849#else
850 return cpystrn(buf, apr_table_get(table, name), buflen);
851#endif
852}
853
854static int log_header(const ap_errorlog_info *info, const char *arg,
855 char *buf, int buflen)

Callers 3

log_headerFunction · 0.85
log_noteFunction · 0.85
log_env_varFunction · 0.85

Calls 2

ap_escape_errorlog_itemFunction · 0.85
cpystrnFunction · 0.85

Tested by

no test coverage detected