aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/feedController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-20 01:38:23 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-20 01:38:23 +0200
commit7f2b0439ec4158ee7d78571d60e9bcc995e87cac (patch)
tree8c8448b652b0280265c98d42c81348d2c0dad409 /app/Controllers/feedController.php
parent1893fc61e0e576519f878267fd877247445d1055 (diff)
Extract function safe_ascii()
Diffstat (limited to 'app/Controllers/feedController.php')
-rwxr-xr-xapp/Controllers/feedController.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index d4a6c9955..ed3229687 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -314,9 +314,7 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
if (count($entries) > 0) {
$newGuids = array();
foreach ($entries as $entry) {
- $guid = $entry->guid();
- $guid = filter_var($guid, FILTER_DEFAULT, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH);
- $newGuids[] = $guid;
+ $newGuids[] = safe_ascii($entry->guid());
}
// For this feed, check existing GUIDs already in database.
$existingHashForGuids = $entryDAO->listHashForFeedGuids($feed->id(), $newGuids);