امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
If the path to the temporary directory does contain a symlink somewhere, copying files from a style archive does fail due to
PHP:
As
Suggested Solution
Call
Read more
PHP:
کد:
$stdPath = File::stripRootPathPrefix($pathname, $tempDir);
if (!$this->isWithinAssetPath($stdPath, $assetPaths))
{
continue;
}
$tempDir does not contain the realpath, calling stripRootPathPrefix does nothing and thus isWithinAssetPath returns false which skips the file.Suggested Solution
Call
realpath before returing...Read more
