mirror of
https://github.com/php/php-src.git
synced 2024-11-26 19:33:55 +08: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
@ -435,8 +435,8 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC)
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
if (PG(doc_root) && path_info && (length = strlen(PG(doc_root)) &&
|
||||
IS_ABSOLUTE_PATH(PG(doc_root), length))) {
|
||||
if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) &&
|
||||
IS_ABSOLUTE_PATH(PG(doc_root), length)) {
|
||||
filename = emalloc(length + strlen(path_info) + 2);
|
||||
if (filename) {
|
||||
memcpy(filename, PG(doc_root), length);
|
||||
|
Loading…
Reference in New Issue
Block a user