- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 25,519
- راهحلها
- 27
- پسندها
- 3,278
- امتیازها
- 113
- سن
- 29
- محل سکونت
- England
- وب سایت
- xenforo.xyz
Inconsistent prefix filter handling in XF and XFRM
I noticed two inconsistencies in the prefix filtering code between XF threads and XFRM resources.
Prefix validation
XF validates a selected thread prefix before adding it to the filters:
if ($input['prefix_id'] && $forum->isPrefixValid($input['prefix_id']))
{
$filters['prefix_id'] = $input['prefix_id'];
}
XFRM does not perform an equivalent validation for resource prefixes:
if ($input['prefix_id'])
{...
I noticed two inconsistencies in the prefix filtering code between XF threads and XFRM resources.
Prefix validation
XF validates a selected thread prefix before adding it to the filters:
if ($input['prefix_id'] && $forum->isPrefixValid($input['prefix_id']))
{
$filters['prefix_id'] = $input['prefix_id'];
}
XFRM does not perform an equivalent validation for resource prefixes:
if ($input['prefix_id'])
{...
