diff options
Diffstat (limited to 'ext/phar/util.c')
| -rw-r--r-- | ext/phar/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/phar/util.c b/ext/phar/util.c index ddd51eb6fe..09258b1f96 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -33,7 +33,7 @@ static char *phar_get_link_location(phar_entry_info *entry TSRMLS_DC) return NULL; } if (entry->link[0] == '/') { - return entry->link; + return estrdup(entry->link + 1); } tmp = estrndup(entry->filename, entry->filename_len); p = strrchr(tmp, '/'); |
