]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/RemoteFollow.php
Merge pull request #8462 from annando/issue-8254-3
[friendica.git] / src / Module / RemoteFollow.php
index d0a6c571140ee800bc71aab1c5d3f4cda72f2b21..8e4da3c63ba3acab4c9bfe969db26583e5717bcf 100644 (file)
@@ -1,4 +1,23 @@
 <?php
+/**
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Module;
 
@@ -35,7 +54,7 @@ class RemoteFollow extends BaseModule
                        return;
                }
                
-               $url = trim($_POST['dfrn_url']);
+               $url = Probe::cleanURI($_POST['dfrn_url']);
                if (!strlen($url)) {
                        notice(DI::l10n()->t("Invalid locator"));
                        return;