Skip to content

Commit 3a2fa48

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents f98684b + 252ebce commit 3a2fa48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sapi/fpm/fpm/fpm_conf.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,8 @@ static int fpm_conf_process_all_pools() /* {{{ */
874874
}
875875

876876
for (i = 0; i < strlen(status); i++) {
877-
if (!isalnum(status[i]) && status[i] != '/' && status[i] != '-' && status[i] != '_' && status[i] != '.') {
878-
zlog(ZLOG_ERROR, "[pool %s] the status path '%s' must contain only the following characters '[alphanum]/_-.'", wp->config->name, status);
877+
if (!isalnum(status[i]) && status[i] != '/' && status[i] != '-' && status[i] != '_' && status[i] != '.' && status[i] != '~') {
878+
zlog(ZLOG_ERROR, "[pool %s] the status path '%s' must contain only the following characters '[alphanum]/_-.~'", wp->config->name, status);
879879
return -1;
880880
}
881881
}
@@ -897,8 +897,8 @@ static int fpm_conf_process_all_pools() /* {{{ */
897897
}
898898

899899
for (i = 0; i < strlen(ping); i++) {
900-
if (!isalnum(ping[i]) && ping[i] != '/' && ping[i] != '-' && ping[i] != '_' && ping[i] != '.') {
901-
zlog(ZLOG_ERROR, "[pool %s] the ping path '%s' must containt only the following characters '[alphanum]/_-.'", wp->config->name, ping);
900+
if (!isalnum(ping[i]) && ping[i] != '/' && ping[i] != '-' && ping[i] != '_' && ping[i] != '.' && ping[i] != '~') {
901+
zlog(ZLOG_ERROR, "[pool %s] the ping path '%s' must containt only the following characters '[alphanum]/_-.~'", wp->config->name, ping);
902902
return -1;
903903
}
904904
}

0 commit comments

Comments
 (0)