mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-25 12:38:37 -04:00
Extract function safe_ascii()
This commit is contained in:
1 parent
1893fc61e0
commit
7f2b0439ec
5 files changed
+12
-13
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user