diff options
| author | 2016-10-20 01:38:23 +0200 | |
|---|---|---|
| committer | 2016-10-20 01:38:23 +0200 | |
| commit | 7f2b0439ec4158ee7d78571d60e9bcc995e87cac (patch) | |
| tree | 8c8448b652b0280265c98d42c81348d2c0dad409 /app/Controllers/importExportController.php | |
| parent | 1893fc61e0e576519f878267fd877247445d1055 (diff) | |
Extract function safe_ascii()
Diffstat (limited to 'app/Controllers/importExportController.php')
| -rw-r--r-- | app/Controllers/importExportController.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Controllers/importExportController.php b/app/Controllers/importExportController.php index e380323c4..a1f789805 100644 --- a/app/Controllers/importExportController.php +++ b/app/Controllers/importExportController.php @@ -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); |
