A free, self-hostable news aggregator…
Fix issue #20 (?)
Marien Fressinaud0a0758995a10
diff --git a/app/models/Feed.php b/app/models/Feed.phpindex 7568069b0..c88a4d527 100644--- a/app/models/Feed.php+++ b/app/models/Feed.php@@ -43,6 +43,10 @@ class Feed extends Model {}public function _url ($value) {+ if (!is_null ($value) && !preg_match ('#^https?://#', $value)) {+ $value = 'http://' . $value;+ }+if (!is_null ($value) && filter_var ($value, FILTER_VALIDATE_URL)) {$this->url = $value;} else {