summaryrefslogtreecommitdiff
path: root/source4/lib/appweb/esp/espProcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/appweb/esp/espProcs.c')
-rw-r--r--source4/lib/appweb/esp/espProcs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/lib/appweb/esp/espProcs.c b/source4/lib/appweb/esp/espProcs.c
index 28b69a8a6f..7b5dfe680e 100644
--- a/source4/lib/appweb/esp/espProcs.c
+++ b/source4/lib/appweb/esp/espProcs.c
@@ -93,8 +93,11 @@ static int includeProc(EspRequest *ep, int argc, char **argv)
buf[size] = '\0';
extension = strrchr(argv[i], '.');
- /* this makes handling include files in esp scripts much more convenient */
- if (extension && strcasecmp(extension, ".esp") == 0) {
+
+ /*
+ * Allow nested inclusion of ESP requests
+ */
+ if (extension && mprStrCmpAnyCase(extension, ".esp") == 0) {
if (espProcessRequest(ep, path, buf, &emsg) != 0) {
espError(ep, "Cant evaluate script - %s", emsg?emsg:"");
mprFree(buf);