Skip to content

Commit

Permalink
fix: Filter location for phpBB
Browse files Browse the repository at this point in the history
  • Loading branch information
linc committed Apr 28, 2024
1 parent bb55c63 commit 2713be0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Source/PhpBb2.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ protected function conversations(ExportModel $ex): void
'RealSubject' => array(
'Column' => 'Subject',
'Type' => 'varchar(250)',
'Filter' => array('Phpbb2', 'EntityDecode')
'Filter' => array($this, 'EntityDecode')
)
);

Expand Down
6 changes: 5 additions & 1 deletion src/Source/PhpBb3.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ public function banList(ExportModel $ex)
and (ban_ip!='' or ban_email!='')"
);
}
public static function entityDecode($value)
{
return html_entity_decode($value, ENT_QUOTES, 'UTF-8');
}

/**
* @param mixed $r
Expand Down Expand Up @@ -631,7 +635,7 @@ protected function conversations(ExportModel $ex): void
'RealSubject' => array(
'Column' => 'Subject',
'Type' => 'varchar(250)',
'Filter' => array('Phpbb2', 'EntityDecode')
'Filter' => array($this, 'EntityDecode')
)
);
$ex->export(
Expand Down

0 comments on commit 2713be0

Please sign in to comment.