mirror of
https://github.com/friendica/friendica
synced 2025-04-22 02:30:11 +00:00
Clean the profile URL when follow
This commit is contained in:
parent
1b87a97a81
commit
9cbea34fa4
3 changed files with 27 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue