diff options
| author | Greg Beaver <cellog@php.net> | 2008-05-11 22:59:16 +0000 |
|---|---|---|
| committer | Greg Beaver <cellog@php.net> | 2008-05-11 22:59:16 +0000 |
| commit | 70d0a4c0456f4c53856e28963dd2275385589454 (patch) | |
| tree | 28fe0ccb6f502d2ef5601a5568fb505a0fef6561 /ext/phar/util.c | |
| parent | ad1be25d8c047fca31df6ffddbe9b904894ecf17 (diff) | |
| download | php-git-70d0a4c0456f4c53856e28963dd2275385589454.tar.gz | |
increase code coverage and fix tiny bug in handling of absolute links
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, '/'); |
