summaryrefslogtreecommitdiff
path: root/source/web/cgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/web/cgi.c')
-rw-r--r--source/web/cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/web/cgi.c b/source/web/cgi.c
index 275bf8999fe..5f4ac63d54c 100644
--- a/source/web/cgi.c
+++ b/source/web/cgi.c
@@ -571,7 +571,7 @@ void cgi_setup(char *rootdir, int auth_required)
*p = 0;
}
- string_sub(url, "/swat/", "");
+ string_sub(url, "/swat/", "", 0);
if (strstr(url,"..")==0 && file_exist(url, NULL)) {
cgi_download(url);