From 3573c621fceba2be0774922bc3b2b85b57cebbe3 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 14 Jul 2013 11:59:01 -0400 Subject: [PATCH] Added trim() when adding a feed manually --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 94a8297..d415c94 100644 --- a/index.php +++ b/index.php @@ -402,7 +402,7 @@ Router\get_action('add', function() { // Add the feed Router\post_action('add', function() { - $result = Model\import_feed($_POST['url']); + $result = Model\import_feed(trim($_POST['url'])); Model\write_debug(); if ($result) {