| 834 | |
| 835 | |
| 836 | static 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 | |
| 854 | static int log_header(const ap_errorlog_info *info, const char *arg, |
| 855 | char *buf, int buflen) |
no test coverage detected