Skip to content

Commit

Permalink
fixed signed subscription filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto@quantal64 committed May 31, 2012
1 parent 85ca80f commit 18f5354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.c
Expand Up @@ -4575,7 +4575,7 @@ char *uwsgi_sanitize_cert_filename(char *base, char *key, uint16_t keylen) {
uint16_t i;
char *filename = uwsgi_concat4n(base, strlen(base), "/", 1, key, keylen, ".pem\0", 5);

for(i=strlen(base)+1;i<keylen;i++) {
for(i=strlen(base)+1;i<(strlen(base)+1)+keylen;i++) {
if (filename[i] >= '0' && filename[i] <= '9') continue;
if (filename[i] >= 'A' && filename[i] <= 'Z') continue;
if (filename[i] >= 'a' && filename[i] <= 'z') continue;
Expand Down

0 comments on commit 18f5354

Please sign in to comment.