امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Previously
PHP:
This can result in an internal...
Read more
updateIcon had a guard statement around if imageFromFile failed, but the added isOptimized check misses that.PHP:
کد:
$baseImage = $imageManager->imageFromFile($this->fileName);
$isOptimized = $baseImage->getType() === IMAGETYPE_WEBP;
unset($baseImage);
if ($this->width != $targetSize || $this->height != $targetSize)
{
$image = $imageManager->imageFromFile($this->fileName);
if (!$image)
{
return false;
}
This can result in an internal...
Read more
