New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trim spaces from user given url #1778
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I said, lgtm.
See #1777 for some (minimal) discussion. As I said in #1777 (comment)
|
app/Controllers/feedController.php
Outdated
@@ -39,12 +39,14 @@ public function firstAction() { | |||
* @throws FreshRSS_Feed_Exception | |||
* @throws Minz_FileNotExistException | |||
*/ | |||
public static function addFeed($url, $title = '', $cat_id = 0, $new_cat_name = '', $http_auth = '') { | |||
public static function addFeed($param_url, $title = '', $cat_id = 0, $new_cat_name = '', $http_auth = '') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please either keep $url
(and later below use $url = trim($url);
) or update the @param
documentation a few lines higher up. I would better like option 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought of writing something like that and decided against it without realizing that GitHub was hiding the documentation a few lines up. :-P
I'd also go with option 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did option 1 👍
Thanks @keltroth 👍 |
Trim spaces from user given url
Forget the other PR, I made this one to avoid new commit on my own dev branch to come to you :)