DragonByte Tech
Well-known member
- Affected version
- 2.0.10 & 2.1.0 Beta 2
In
The
The fix should be to change the relevant line to
Please consider fixing this in XF 2.0 as well as 2.1 (if you're doing another bugfix XF2.0 release, IIRC there was meant to be a 2.0.11 bugfix release before the security issue?).
Thanks!
Fillip
\XF\Searcher\AbstractSearcher
you'll see this:
Code:
if ($format == 'date')
{
if (is_array($value))
{
if (isset($value['start']))
{
$value['start'] = $this->convertDateToInteger($value['start']);
}
if (isset($value['end']))
{
$value['end'] = $this->convertDateToInteger($value['end']);
}
}
else
{
$value = $this->convertDateToInteger($value);
}
}
convertDateToInteger
function actually does support an "end" parameter: protected function convertDateToInteger($date, $dayEnd = false)
yet it's not used.The fix should be to change the relevant line to
$value['end'] = $this->convertDateToInteger($value['end'], true);
Please consider fixing this in XF 2.0 as well as 2.1 (if you're doing another bugfix XF2.0 release, IIRC there was meant to be a 2.0.11 bugfix release before the security issue?).
Thanks!
Fillip