summaryrefslogtreecommitdiff
path: root/source4/web_server/esp/esp.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-26 03:05:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:02 -0500
commit44d2a46580da126866f704e5cf9b6599635f5f01 (patch)
tree59410b0ba2fd51788153a879d9a01d013453b9aa /source4/web_server/esp/esp.h
parente8e8eab400fbc310bcf1af8dd1d5436fe9e1cac4 (diff)
downloadsamba-44d2a46580da126866f704e5cf9b6599635f5f01.tar.gz
samba-44d2a46580da126866f704e5cf9b6599635f5f01.tar.bz2
samba-44d2a46580da126866f704e5cf9b6599635f5f01.zip
r6987: - make sure esp pages cannot read data outside of the swat directory
- don't expose the real system path to esp scripts - fixed absolute paths in include() calls (This used to be commit 6535611aa22f51b7376be3c15715e8040a059736)
Diffstat (limited to 'source4/web_server/esp/esp.h')
-rw-r--r--source4/web_server/esp/esp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/web_server/esp/esp.h b/source4/web_server/esp/esp.h
index 33ab9d7ac9..4503cacbb7 100644
--- a/source4/web_server/esp/esp.h
+++ b/source4/web_server/esp/esp.h
@@ -99,7 +99,7 @@ typedef struct Esp {
char *(*getSessionId)(EspHandle handle);
int (*mapToStorage)(EspHandle handle, char *path, int len, char *uri,
int flags);
- int (*readFile)(EspHandle handle, char **buf, int *len, char *path);
+ int (*readFile)(EspHandle handle, char **buf, int *len, const char *path);
void (*redirect)(EspHandle handle, int code, char *url);
void (*setCookie)(EspHandle handle, char *name, char *value,
int lifetime, char *path, bool secure);