Lines 1674-1683
Link Here
|
1674 |
} |
1674 |
} |
1675 |
|
1675 |
|
1676 |
if (!error_fmt && (ctx->flags & SSI_FLAG_NO_EXEC) && |
1676 |
if (!error_fmt && (ctx->flags & SSI_FLAG_NO_EXEC) && |
1677 |
rr->content_type && strncmp(rr->content_type, "text/", 5)) { |
1677 |
rr->content_type) { |
|
|
1678 |
int decline = 1; |
1679 |
if (!strncmp(rr->content_type, "text/", 5)) { |
1680 |
decline = 0; |
1681 |
} else if (!strncmp(rr->content_type, "application/", 12)) { |
1682 |
const char * pos = ap_strchr_c(rr->content_type, ';'); |
1683 |
if (!pos) { |
1684 |
pos = rr->content_type + strlen(rr->content_type); |
1685 |
} |
1686 |
pos -= 4; |
1687 |
if (!strncmp(pos, "+xml", 4)) { |
1688 |
decline = 0; |
1689 |
} |
1690 |
} |
1678 |
|
1691 |
|
1679 |
error_fmt = "unable to include potential exec \"%s\" in parsed " |
1692 |
if (decline) { |
1680 |
"file %s"; |
1693 |
error_fmt = "unable to include potential exec \"%s\" in parsed " |
|
|
1694 |
"file %s"; |
1695 |
} |
1681 |
} |
1696 |
} |
1682 |
|
1697 |
|
1683 |
/* See the Kludge in includes_filter for why. |
1698 |
/* See the Kludge in includes_filter for why. |