mirror of
https://github.com/friendica/friendica
synced 2025-04-23 19:10:13 +00:00
Make validate_url more intuitive
- Remove the parameter passed by reference - Add modified url in return value
This commit is contained in:
parent
e16852c2f5
commit
1724dd3841
5 changed files with 21 additions and 20 deletions
|
@ -377,7 +377,8 @@ function dfrn_request_post(App $a) {
|
|||
);
|
||||
}
|
||||
else {
|
||||
if (! validate_url($url)) {
|
||||
$url = validate_url($url);
|
||||
if (! $url) {
|
||||
notice( t('Invalid profile URL.') . EOL);
|
||||
goaway(System::baseUrl() . '/' . $a->cmd);
|
||||
return; // NOTREACHED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue