diff options
| author | Antony Dovgal <tony2001@php.net> | 2007-02-13 15:55:45 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2007-02-13 15:55:45 +0000 |
| commit | dc9e17faf3ca0a2d357913ee48266c9120225fcf (patch) | |
| tree | 47816caa4cfd999efda83dfb6ab46788084e50b6 /ext | |
| parent | 29a9ba96391c7397d214041a2776347a4b12e3eb (diff) | |
| download | php-git-dc9e17faf3ca0a2d357913ee48266c9120225fcf.tar.gz | |
fix #40455 (proc_open() uses wrong commandline when safe_mode_exec_dir is set)
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/proc_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 73ecf1bd82..49755ef868 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -276,7 +276,7 @@ static int php_make_safe_mode_command(char *cmd, char **safecmd, int is_persiste sep = zend_memrchr(arg0, PHP_DIR_SEPARATOR, larg0); - spprintf(safecmd, 0, "%s%c%s%s", PG(safe_mode_exec_dir), (sep ? *sep : '/'), (sep ? "" : arg0), (space ? cmd + larg0 : "")); + spprintf(safecmd, 0, "%s%s%s%s", PG(safe_mode_exec_dir), (sep ? sep : "/"), (sep ? "" : arg0), (space ? cmd + larg0 : "")); efree(arg0); arg0 = php_escape_shell_cmd(*safecmd); |
