Extract function safe_ascii()

This commit is contained in:
Alexandre Alapetite
2016-10-20 01:38:23 +02:00
parent 1893fc61e0
commit 7f2b0439ec
5 changed files with 12 additions and 13 deletions

View File

@@ -362,9 +362,7 @@ class FreshRSS_importExport_Controller extends Minz_ActionController {
$newGuids = array();
foreach ($article_object['items'] as $item) {
$guid = $item['id'];
$guid = filter_var($guid, FILTER_DEFAULT, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH);
$newGuids[] = $guid;
$newGuids[] = safe_ascii($item['id']);
}
// For this feed, check existing GUIDs already in database.
$existingHashForGuids = $this->entryDAO->listHashForFeedGuids($feed->id(), $newGuids);