| 994 | } |
| 995 | |
| 996 | static int startsWith(request_rec *r, const char *haystack, const char *needle) { |
| 997 | int rc = (ap_strstr_c(haystack, needle) == haystack); |
| 998 | rewritelog(r, 5, NULL, "prefix_stat startsWith(%s, %s) %d", haystack, needle, rc); |
| 999 | return rc; |
| 1000 | } |
| 1001 | /* |
| 1002 | * stat() only the first segment of a path, and only if it matches the output of the last matching rule |
| 1003 | */ |
no test coverage detected