diff options
author | tenox <as@tenoware.com> | 2016-11-09 01:48:10 -0800 |
---|---|---|
committer | tenox <as@tenoware.com> | 2016-11-09 01:48:10 -0800 |
commit | 9fcd9cede183bc43d9419d5cdb3b7801e5a726ab (patch) | |
tree | 34228c5b0397590fa0f2565792c45d1d83ba08b7 /wfm.c | |
parent | e2bf2adac69cf2011ea8080864345055c150b11c (diff) | |
download | wfm-9fcd9cede183bc43d9419d5cdb3b7801e5a726ab.tar.gz |
formatting fix1.1.2
Diffstat (limited to 'wfm.c')
-rw-r--r-- | wfm.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -119,11 +119,6 @@ void access_check(char *access_string) { char type[4]={0}; char token_inp[64]={0}; - memset(ipaddr, 0, sizeof(ipaddr)); - memset(user, 0, sizeof(user)); - memset(pass, 0, sizeof(pass)); - memset(type, 0, sizeof(type)); - if(sscanf(access_string, "access-ip=%2s:%30s", type, ipaddr)==2) { if(ipaddr[0]=='*') { @@ -155,6 +150,7 @@ void access_check(char *access_string) { access_level=PERM_RW; access_as_user=1; strncpy(loggedinuser, user, sizeof(loggedinuser)); + cgiAllowUploadFiles=1; } } } |