mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
- Fixed bug #51627 (script path not correctly evaluated)
Patch by: russell dot tempero at rightnow dot com
This commit is contained in:
parent
5e2cba90c9
commit
10e7361027
1 changed files with 2 additions and 2 deletions
|
@ -435,8 +435,8 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC)
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
if (PG(doc_root) && path_info && (length = strlen(PG(doc_root)) &&
|
if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) &&
|
||||||
IS_ABSOLUTE_PATH(PG(doc_root), length))) {
|
IS_ABSOLUTE_PATH(PG(doc_root), length)) {
|
||||||
filename = emalloc(length + strlen(path_info) + 2);
|
filename = emalloc(length + strlen(path_info) + 2);
|
||||||
if (filename) {
|
if (filename) {
|
||||||
memcpy(filename, PG(doc_root), length);
|
memcpy(filename, PG(doc_root), length);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue