mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
One last expand_filepath() check
This commit is contained in:
parent
92c3cfd81f
commit
9f217cd983
@ -1395,8 +1395,9 @@ char *_dom_get_valid_file_path(char *source, char *resolved_path, int resolved_p
|
||||
|
||||
if ((uri->scheme == NULL || isFileUri)) {
|
||||
/* XXX possible buffer overflow if VCWD_REALPATH does not know size of resolved_path */
|
||||
if (! VCWD_REALPATH(source, resolved_path)) {
|
||||
expand_filepath(source, resolved_path TSRMLS_CC);
|
||||
if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) {
|
||||
xmlFreeURI(uri);
|
||||
return NULL;
|
||||
}
|
||||
file_dest = resolved_path;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user