summaryrefslogtreecommitdiff
path: root/app/Controllers/feedController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-02-05 20:57:23 +0100
committerGravatar GitHub <noreply@github.com> 2018-02-05 20:57:23 +0100
commit81df36ed54d18b33c527b9bfa527f3f9f0faa264 (patch)
treecc8cbd0cf69cfe4512e7a00d3b9f7a3ccf80c0b6 /app/Controllers/feedController.php
parentfb541b1bacb198be7ccac9341415facb91b7dc81 (diff)
parente6e0502a5ca48a0b57d8036d1498ffa61308bba2 (diff)
Merge pull request #1778 from keltroth/trimurl
Trim spaces from user given url
Diffstat (limited to 'app/Controllers/feedController.php')
-rwxr-xr-xapp/Controllers/feedController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index 884172112..7f66b10db 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -45,6 +45,8 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
$catDAO = new FreshRSS_CategoryDAO();
+ $url = trim($url);
+
$cat = null;
if ($new_cat_name != '') {
$new_cat_id = $catDAO->addCategory(array('name' => $new_cat_name));