Clean the profile URL when follow

This commit is contained in:
Michael 2020-02-22 12:29:33 +00:00
parent 1b87a97a81
commit 9cbea34fa4
3 changed files with 27 additions and 2 deletions

View file

@ -54,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;