Attack
Forum Üyesi
- Katılım
- 4 Şub 2023
- Mesajlar
- 2,618
- Puanları
- 0
In XF\Extension::removeClassExtensions, we have:
Code:
foreach ($this->classExtensions[$class] AS $subclass){ unset($this->inverseExtensionMap[$subclass]);}
However, this does not check that the key $this->classExtensions[$class] exists before looping it. Since XF\Extension also provides no getter for $this->classExtensions, there is no easy way for an add-on to know whether this key exists if they need to call ::removeClassExtensions (e.g. inside a setup method to ensure no other...
Code:
foreach ($this->classExtensions[$class] AS $subclass){ unset($this->inverseExtensionMap[$subclass]);}
However, this does not check that the key $this->classExtensions[$class] exists before looping it. Since XF\Extension also provides no getter for $this->classExtensions, there is no easy way for an add-on to know whether this key exists if they need to call ::removeClassExtensions (e.g. inside a setup method to ensure no other...
Misafirler için gizlenen link, görmek için
Giriş yap veya üye ol.