Some cases when replace is not optimal
-
Hi there,
have been debugging some problems, and I come to the conclusion that on autoload function for wp-all-export-pro.php file the $pathAlt ( I see it done in two different ways) is eventually replaced with str_replace (or lreplace method first), but that may throw erros if the abspath has _ in it. So if the hostname is like /home/someuser_33/public_html/wp-content… then the path is replacding _ with DIRECTORY_SEPARATOR . So I just did
$pathAlt = self::ROOT_DIR . '/' . $subdir . '/' . str_replace('_',DIRECTORY_SEPARATOR, $filePathAlt);This might solve some is not within the allowed path(s) errors
The topic ‘Some cases when replace is not optimal’ is closed to new replies.