| 1784 | } |
| 1785 | |
| 1786 | AP_DECLARE(int) ap_is_chunked(apr_pool_t *p, const char *line) |
| 1787 | { |
| 1788 | const char *s; |
| 1789 | |
| 1790 | if (!line) |
| 1791 | return 0; |
| 1792 | if (!ap_cstr_casecmp(line, "chunked")) { |
| 1793 | return 1; |
| 1794 | } |
| 1795 | |
| 1796 | s = find_last_token(p, line, "chunked"); |
| 1797 | |
| 1798 | if (!s) return 0; |
| 1799 | |
| 1800 | /* eat spaces right-to-left to see what precedes "chunked" */ |
| 1801 | while (--s > line) { |
| 1802 | if (*s != ' ') break; |
| 1803 | } |
| 1804 | |
| 1805 | /* found delim, or leading ws (input wasn't parsed by httpd as a header) */ |
| 1806 | if (*s == ',' || *s == ' ') { |
| 1807 | return 1; |
| 1808 | } |
| 1809 | return 0; |
| 1810 | } |
| 1811 | |
| 1812 | AP_DECLARE(char *) ap_escape_shell_cmd(apr_pool_t *p, const char *str) |
| 1813 | { |
no test coverage detected